On Jul 16, 11:53 am, Eratothene <[EMAIL PROTECTED]> wrote:
> I need to make dictionary out of django.auth.model.User instance in
> such format:
What about using vars()
>>> from foo.main.models import *
>>> d = District()
>>> vars(d)
{'id': None, 'borough_id': None, 'name': ''}
>>>
L.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---