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

Password reset from admin UI is broken #266

Open slinkp opened 12 years ago

slinkp commented 12 years ago

If you're logged in as an admin and go to admin/password_change/ and submit the form, you get a traceback:

Traceback:
File "/var/www/columbia.openblock.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/columbia.openblock.org/current/lib/python2.6/site-packages/django/contrib/admin/sites.py" in wrapper
  214.                 return self.admin_view(view, cacheable)(*args, **kwargs)
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/utils/decorators.py" in _wrapped_view
  93.                     response = view_func(request, *args, **kwargs)
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/contrib/admin/sites.py" in inner
  197.             return view(request, *args, **kwargs)
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/contrib/admin/sites.py" in password_change
  268.         return password_change(request, **defaults)
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/utils/decorators.py" in _wrapped_view
  93.                     response = view_func(request, *args, **kwargs)
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/contrib/auth/views.py" in password_change
  237.             form.save()
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/contrib/auth/forms.py" in save
  172.             self.user.save()
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/db/models/base.py" in save
  460.         self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/db/models/base.py" in save_base
  522.                         manager.using(using).filter(pk=pk_val).exists())):
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/db/models/query.py" in exists
  496.             return self.query.has_results(using=self.db)
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/db/models/sql/query.py" in has_results
  424.         return bool(compiler.execute_sql(SINGLE))
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/db/models/sql/compiler.py" in execute_sql
  735.         cursor.execute(sql, params)
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/db/backends/util.py" in execute
  34.             return self.cursor.execute(sql, params)
File "/var/www/columbia.openblock.org/current/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py" in execute
  44.             return self.cursor.execute(query, args)

Exception Type: DatabaseError at /admin/password_change/
Exception Value: relation "accounts_lazyuser" does not exist
LINE 1: SELECT (1) AS "a" FROM "accounts_lazyuser" WHERE "accounts_l...
slinkp commented 12 years ago

The non-admin password reset via email works: at /accounts/password-change/

slinkp commented 12 years ago

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