In m-r, I want to write

u = User.objects.get(login='namehere')

except that login isn't the name of the attribute.

Where can I look to find all the attributes of an instance? I know  
about the dir() function, but it just gives me methods, right?

Is there someplace Python-internal to do this, or do I have to look  
in the Django documentation. And, if the latter, where?

Thanks much, and sorry about the newbiness,
Todd

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to