#5827: NameError - when trying to login with e-mail address (import mis)
-----------------------------+----------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Component: Admin interface
Version: newforms-admin | Keywords:
Stage: Unreviewed | Has_patch: 1
-----------------------------+----------------------------------------------
{{{
NameError at /admin/
global name 'User' is not defined
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/
Exception Type: NameError
Exception Value: global name 'User' is not defined
Exception Location: /.../django/contrib/admin/sites.py in login, line
228
Python Executable:
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/Python
Python Version: 2.4.4
}}}
User model class is not imported. A simple fix is attached.
--
Ticket URL: <http://code.djangoproject.com/ticket/5827>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---