I'm an almost complete Python newbie, and I found dictionaries, but is there an automatic way to deal with lists of pairs that have been used for choices settings in the admin view, cause they're tuples of tuples, right?
I have KINDS = ((0, 'foo'), (1, 'bar')) class Thing(meta.Model): kind = meta.IntegerField(choices=KINDS) I'd like to include the text values of kind in the object's __repr__ method and in a table view, but can't figure out how. Thanks, 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 -~----------~----~----~----~------~----~------~--~---