Opened 8 years ago

Closed 8 years ago

#27474 closed Bug (needsinfo)

Classes attribute in admin.TabularInline

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

Description

I noticed this when using grappelli, but can confirm that the same happens with grappelli disabled and a clean set of static files.
When using the 'classes' attribute in admin.TabularInline I get the following error:
TypeError at xx/xx/xx
sequence item 0: expected string or Unicode, tuple found

I get the same error if I use a 'list' or 'None' instead of a tuple (with corresponding 'list found' and NoneType ending), which is strange since the default value for classes should be 'None'.
Both django's and grappelli's docs ask for a tuple or list, but I get no errors and everything works as expected if I simply comment out the classes line, or give it a string.

Change History (2)

comment:1 by Tim Graham, 8 years ago

There isn't much detail in the report to help with reproducing the issue. What's a minimal example admin.py to reproduce?

comment:2 by Tim Graham, 8 years ago

Resolution: needsinfo
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top