Opened 12 years ago

Closed 12 years ago

#9949 closed (duplicate)

When using named groups for choices, filter list in admin shows object data.

Reported by: matt@… Owned by: nobody
Component: contrib.admin Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I tested this against both 1.0.2 and SVN-9694

    ('Audio', (
            (1, 'Vinyl'),
            (2, 'CD'),
    ('Video', (
            (3, 'VHS Tape'),
            (4, 'DVD'),

class Media(models.Model):
    user  = models.ForeignKey(User)
    media = models.IntegerField(choices=CHOICES_MEDIA)

See attached file for what is displayed.

Attachments (1)

Picture 2.png (16.3 KB) - added by anonymous 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by anonymous

Attachment: Picture 2.png added

comment:1 Changed 12 years ago by matt@…

Using python 2.6.1

comment:2 Changed 12 years ago by anonymous

Values in MEDIA_CHOICES are wrapped in ugettext_lazy('Vinyl')

comment:3 Changed 12 years ago by Ramiro Morales

Resolution: duplicate
Status: newclosed

Duplicate of #9954 that includes a patch. I've tested the case you posted (wrapping one or more lables with ugettext_lazy()) and it's fixed when that patch is applied.

Sorry I didn't associate both reports but the report wasn't very clear.

Note: See TracTickets for help on using tickets.
Back to Top