Opened 3 years ago

Closed 3 years ago

#20710 closed Uncategorized (invalid)

Objects not displaying properly in Django 1.5 using Python 3.3

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


Even after specifying a unicode method for my models, in the admin site, it shows them as generic "Item object" types. Rechecked using Python 2.7.3 and Django 1.5 and the display is fine.

Change History (1)

comment:1 Changed 3 years ago by Tim Graham

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: invalid
Status: newclosed

On Python 3, you should implement __str__() rather than __unicode__() -- see the note under this heading:

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