#7724: get_FIELD_display in backend doesn't respect FIELD's name or verbose_name
----------------------------------------------------+-----------------------
Reporter: CaptainCapacitor | Owner: nobody
Status: new | Milestone:
Component: Admin interface | Version: SVN
Keywords: admin, get_FIELD_*, name, verbose name | Stage: Unreviewed
Has_patch: 0 |
----------------------------------------------------+-----------------------
{{{
colour_choices = [(0, 'red'), (1, 'blue'), (2, 'green')]
class Car(models.Model):
...
colour = models.IntegerField(name='colour', verbose_name='Primary
Colour', choices=colour_choices)
...
class Admin:
list_display=['name', 'year', 'make', 'model',
'get_colour_display']
}}}
In the Admin panel, the final field is titled "Get Colour Display", and no
amount of effort can convince it otherwise.
--
Ticket URL: <http://code.djangoproject.com/ticket/7724>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---