On Mar 27, 2006, at 10:13 PM, Max Battcher wrote:
> If you visit the Admin's documentation site (link in the top bar),  
> under
> Models it will point you to the fact that Django magically creates a
> function for you to do just that.  In your example this would be:
>
> something.get_kind_display()

Thanks for the pointer. It might be good to mention the  
get_FOO_display() method
in the model portion of the documentation where it talks about choices.

I missed it in the database API because it's not clear from the name  
that it
has anything to do with the choices option.

Todd

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

Reply via email to