mirror of https://github.com/zulip/zulip.git
Fix user of UserProfile instead of User.
(imported from commit 08875b4fc7dec48a8fce6d6eab716642493a0708)
This commit is contained in:
parent
10873529fd
commit
b235b8bc31
|
@ -155,7 +155,7 @@ def forge_zephyr(request):
|
|||
user_profile = UserProfile.objects.get(user=request.user)
|
||||
try:
|
||||
user = User.objects.get(username=username)
|
||||
except UserProfile.DoesNotExist:
|
||||
except User.DoesNotExist:
|
||||
# forge a user for this person
|
||||
user = User.objects.create_user(username=username, password="test")
|
||||
user.save()
|
||||
|
|
Loading…
Reference in New Issue