> Each instance of your model will have a special method name
> 'get_foo_display', where 'foo' is the name of the field with the
> choices. For example:
I should have found that. Thanks.
> >>> b.get_kind_display()
Presumably I can also use that in a template :
{% object.get_kind_display %}
Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---