If you have an instance, you could just do:

myUserModelInstance.__dict__ -- that'll get you the data you want,  
and a bunch of extra stuff you most likely don't want. I don't really  
recommend doing this either, since it's not "the right way" IMO, but  
it solves your problem.

On 16/07/2007, at 4:53 PM, Eratothene wrote:

>
> I need to make dictionary out of django.auth.model.User instance in
> such format:
>
> {'username':'val1', 'password':'val2', 'email':'',
> 'first_name':'val3', 'last_name':'val4' ...}
>
> In order to populate this data in to the custom form. I have read all
> documentation available in order to resolve this simple task, how to
> make it?
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to