Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password reset from admin UI is broken #266

Open
slinkp opened this issue Sep 28, 2012 · 2 comments
Open

Password reset from admin UI is broken #266

slinkp opened this issue Sep 28, 2012 · 2 comments

Comments

@slinkp
Copy link
Contributor

slinkp commented Sep 28, 2012

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
Copy link
Contributor Author

slinkp commented Sep 28, 2012

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

@slinkp
Copy link
Contributor Author

slinkp commented Sep 28, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant