playfire / django-debug-toolbar-user-panel

Panel for the Django Debug toolbar to quickly switch between users
http://code.playfire.com/django-debug-toolbar-user-panel/
BSD 3-Clause "New" or "Revised" License
81 stars 31 forks source link

Allow negative user ids #4

Closed jor123 closed 13 years ago

jor123 commented 13 years ago

django guardian requires an 'anoymous user id' setting. In projects using guardian, this is often configured to be '-1'

The loop in the template for the user list throws an Exception because it can't find a matching reverse url for an id = -1