Update UserCardDetail get method
This commit is contained in:
parent
faa0604fae
commit
9035f98060
1 changed files with 2 additions and 2 deletions
|
@ -347,7 +347,7 @@ class UserCardDetail(AssignPermissionsMixin, models.Model):
|
||||||
|
|
||||||
:param stripe_customer:
|
:param stripe_customer:
|
||||||
:param card_details:
|
:param card_details:
|
||||||
:return: The UserCardDetails object if it exists, False otherwise
|
:return: The UserCardDetails object if it exists, None otherwise
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
ucd = UserCardDetail.objects.get(
|
ucd = UserCardDetail.objects.get(
|
||||||
|
@ -358,4 +358,4 @@ class UserCardDetail(AssignPermissionsMixin, models.Model):
|
||||||
)
|
)
|
||||||
return ucd
|
return ucd
|
||||||
except UserCardDetail.DoesNotExist:
|
except UserCardDetail.DoesNotExist:
|
||||||
return False
|
return None
|
||||||
|
|
Loading…
Reference in a new issue