#16765: Not showing any list_display_links is possible with Debug=False but not
with Debug=True
-------------------------+-------------------------------
 Reporter:  raf.geens@…  |          Owner:  nobody
     Type:  Bug          |         Status:  new
Milestone:               |      Component:  contrib.admin
  Version:  1.3          |       Severity:  Normal
 Keywords:               |   Triage Stage:  Unreviewed
Has patch:  0            |  Easy pickings:  0
    UI/UX:  0            |
-------------------------+-------------------------------
 I had made a ModelAdmin object where using list_editable it was possible
 to edit objects directly on the change list page. Since I didn't
 particularly needed being able to edit each object on a separate page, I
 wanted list_display_links to be empty. When I assigned [None] to it I got
 the desired behaviour.

 However, this only works when Debug = False in settings.py. If Debug =
 True, I'll get a "iteration over non-sequence
 'ConfigAdmin.list_display_links[0]' refers to 'None' which is not defined
 in 'list_display'." exception from admin.site.register , which is what I'd
 expect given list_display_links's documentation.

 I think either the exception should be raised as well with Debug = False,
 or list_display_links should be allowed to be empty.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16765>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to