Code

Opened 7 years ago

Closed 7 years ago

#4369 closed (fixed)

[unicode] Missing __unicode__ in a model class is OK

Reported by: Thomas Güttler <hv@…> Owned by: adrian
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@…> 7 years ago.

Download all attachments as: .zip

Change History (3)

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

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

  • Component changed from Uncategorized to Metasystem
  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Owner changed from jacob to adrian
  • Patch needs improvement unset
  • Summary changed from Missing __unicode__ in a model class is OK to [unicode] Missing __unicode__ in a model class is OK
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 7 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.