Opened 10 years ago

Closed 10 years ago

#4369 closed (fixed)

[unicode] Missing __unicode__ in a model class is OK

Reported by: Thomas Güttler <hv@…> Owned by: Adrian Holovaty
Component: Metasystem Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Hi,

I get this message if a class of a model has no list_display:

app.myclass: "admin.list_display" refers to 'unicode', which isn't an attribute, method or property

The attached patch resolves this.

Attachments (1)

manangement.diff (732 bytes) - added by Thomas Güttler <hv@…> 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Thomas Güttler <hv@…>

Attachment: manangement.diff added

comment:1 Changed 10 years ago by Simon G. <dev@…>

Component: UncategorizedMetasystem
Has patch: set
Owner: changed from Jacob to Adrian Holovaty
Summary: Missing __unicode__ in a model class is OK[unicode] Missing __unicode__ in a model class is OK
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 10 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

This was fixed in a different way in [5322].

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