Fixed wrong return type
This commit is contained in:
parent
b3e35b639a
commit
eb70e8a273
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ class AccountManager(models.Manager):
|
||||||
if result.cofprofile.is_cof:
|
if result.cofprofile.is_cof:
|
||||||
return result
|
return result
|
||||||
else:
|
else:
|
||||||
return None
|
raise self.model.DoesNotExist
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue