Core error in showing records?

20 views
Skip to first unread message

MikeKJ

unread,
Jun 16, 2015, 9:11:12 AM6/16/15
to django...@googlegroups.com
Can anyone shed any light on what this is please?

Exception Type: TemplateSyntaxError
Exception Value:
Caught KeyError while rendering: 10
Exception Location: /home/paston3/webapps/bbus/lib/python2.7/django/contrib/admin/templatetags/admin_list.py in _boolean_icon, line 126

The effect is that the first 3 pages of 395 records show but page 4 (95 records) throws the above error

Simon Charette

unread,
Jun 16, 2015, 12:08:52 PM6/16/15
to django...@googlegroups.com
Hi MikeKJ,

I suppose the ModelAdmin subclass in use here has a list_display method marked as boolean that return an unexpected value.

Make sure it either return True, False or None.

Cheers,
Simon
Reply all
Reply to author
Forward
0 new messages