Fixed a logical error in obj.manager causing it to fail to find arbitrary db_>fieldname>. Resolves Issue 373.

This commit is contained in:
Griatch 2013-05-21 14:29:50 +02:00
parent bda5d88c24
commit efdb954491
4 changed files with 13 additions and 7 deletions

View file

@ -446,7 +446,7 @@ def create_player(name, email, password,
if user:
conflict_check = User.objects.filter(username__iexact=user.username)
conflict_check = len(conflict_check) > 1
conflict_check = len(conflict_check) > 1
else:
conflict_check = User.objects.filter(username__iexact=name)
@ -525,7 +525,7 @@ def create_player(name, email, password,
except Exception:
pass
try:
del new_character
del new_player
except Exception:
pass
raise