On one of my models (in models.py), I have the something like the following defined below a class:
STATUS_CHOICES = ( (1, 'Ham'), (2, 'Turkey'), (3, 'Beef'), ) The Django admin interface is smart enough to pick up the text from the tuple and use it when displaying the dropdown menu when presented to the user and use the numeric value to store the selection in the database. How does one access the text instead of the number when writing my own templates? I've looked through the documentation and I must just be missing the paragraph on how to get at this information. Any help would be appreciated. Thanks! Shane --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---