Skip to content

Commit

Permalink
Allow negative User ids
Browse files Browse the repository at this point in the history
django guardian requires an 'anoymous user id' setting.
In projects using guardian, this is often configured to be '-1'
  • Loading branch information
jor123 committed Nov 10, 2011
1 parent 958091e commit 2e5b03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug_toolbar_user_panel/urls.py
Expand Up @@ -7,6 +7,6 @@
name='debug-userpanel'),
url(r'^%s/users/login/$' % _PREFIX, 'login_form',
name='debug-userpanel-login-form'),
url(r'^%s/users/login/(?P<pk>\d+)$' % _PREFIX, 'login',
url(r'^%s/users/login/(?P<pk>-?\d+)$' % _PREFIX, 'login',
name='debug-userpanel-login'),
)

0 comments on commit 2e5b03c

Please sign in to comment.