If you don't have access to /admin/ you get an "AttributeError"

Bug #897651 reported by Tom Haddon
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
django-openid-auth
Fix Released
Low
Kevin McDermott

Bug Description

If you don't have access to /admin/ (i.e. staff access) and try to connect to /admin/ you get:

Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in get_response
  92. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/pymodules/python2.6/django/contrib/admin/sites.py" in wrapper
  196. return self.admin_view(view, cacheable)(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/views/decorators/cache.py" in _wrapped_view_func
  44. response = view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/contrib/admin/sites.py" in inner
  185. return self.login(request)
File "/usr/lib/pymodules/python2.6/django/views/decorators/cache.py" in _wrapped_view_func
  44. response = view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/django/contrib/admin/sites.py" in login
  288. return self.display_login_form(request, message)
File "/usr/lib/python2.6/dist-packages/django_openid_auth/admin.py" in _openid_login
  79. return views.render_failure(

Exception Type: AttributeError at /admin/
Exception Value: 'module' object has no attribute 'render_failure'

The replacement for the login form in django_openid_auth.admin uses the wrong view names.

Related branches

Tom Haddon (mthaddon)
tags: added: canonical-losa-pes
Changed in hexr:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Nicola Heald (notnownikki) wrote :

Can't reproduce this on my lucid box...
Can you check /usr/lib/pymodules/python2.6/django_openid_auth/views.py and see if render_failure is defined?

Changed in hexr:
status: Confirmed → Incomplete
David Murphy (schwuk)
Changed in hexr:
assignee: nobody → Kevin McDermott (bigkevmcd)
milestone: none → 2011.49
affects: hexr → django-openid-auth
Changed in django-openid-auth:
milestone: 2011.49 → none
description: updated
visibility: private → public
description: updated
Changed in django-openid-auth:
status: Incomplete → In Progress
Changed in django-openid-auth:
status: In Progress → Fix Committed
Changed in django-openid-auth:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.