openplans / openblock

OpenBlock is a web application and RESTful service that allows users to browse and search their local area for "hyper-local news
61 stars 26 forks source link

User registration broken #281

Closed slinkp closed 12 years ago

slinkp commented 12 years ago

AttributeError at /accounts/c/

'User' object has no attribute 'backend'

Traceback:
File "/var/www/demo.openblockproject.org/current/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/var/www/demo.openblockproject.org/builds/20110815/src/openblock/ebpub/ebpub/accounts/views.py" in confirm_email
  237.             utils.login(request, u)
File "/var/www/demo.openblockproject.org/builds/20110815/src/openblock/ebpub/ebpub/accounts/utils.py" in login
  89.     return auth.login(request, user)
File "/var/www/demo.openblockproject.org/current/lib/python2.6/site-packages/django/contrib/auth/__init__.py" in login
  82.     request.session[BACKEND_SESSION_KEY] = user.backend
slinkp commented 12 years ago

(In [caf391e8eca351be3d7e1f4a1150be7be9a0cee0]) Set user.backend on login. Fixes #288

slinkp commented 12 years ago

Ticket imported from Trac: http://developer.openblockproject.org/ticket/288 Reported by: slinkp