Mercurial > public > sg101
diff gpp/accounts/views.py @ 259:75ea1a8be7f2
Fix some old import problems where I used 'from django.contrib import auth' instead of 'from django.contrib.auth.models import User'. Also some formatting changes while I was in there.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 21 Sep 2010 23:49:05 +0000 |
parents | df56795771a6 |
children | 767cedc7d12a |
line wrap: on
line diff
--- a/gpp/accounts/views.py Tue Sep 21 23:08:36 2010 +0000 +++ b/gpp/accounts/views.py Tue Sep 21 23:49:05 2010 +0000 @@ -5,7 +5,7 @@ from django.shortcuts import render_to_response from django.template import RequestContext -from django.contrib import auth +from django.contrib.auth.models import User from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from django.conf import settings @@ -69,7 +69,7 @@ }, context_instance = RequestContext(request)) - new_user = auth.models.User() + new_user = User() new_user.username = pending_user.username new_user.first_name = ''