Fix user of UserProfile instead of User.

(imported from commit 08875b4fc7dec48a8fce6d6eab716642493a0708)
This commit is contained in:
Tim Abbott 2012-09-06 16:04:42 -04:00
parent 10873529fd
commit b235b8bc31
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ def forge_zephyr(request):
user_profile = UserProfile.objects.get(user=request.user) user_profile = UserProfile.objects.get(user=request.user)
try: try:
user = User.objects.get(username=username) user = User.objects.get(username=username)
except UserProfile.DoesNotExist: except User.DoesNotExist:
# forge a user for this person # forge a user for this person
user = User.objects.create_user(username=username, password="test") user = User.objects.create_user(username=username, password="test")
user.save() user.save()