#27474: Classes attribute in admin.TabularInline
-----------------------------------------+------------------------
               Reporter:  Joao           |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  contrib.admin  |        Version:  1.10
               Severity:  Normal         |       Keywords:  admin
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 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.

--
Ticket URL: <https://code.djangoproject.com/ticket/27474>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/056.5c780ab9cd2054769dfcf29063a7c596%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to