Commit 716b789e by Feanil Patel

Merge remote-tracking branch 'origin/release'

parents 4c2b7695 84efae5d
...@@ -42,7 +42,7 @@ log = logging.getLogger(__name__) ...@@ -42,7 +42,7 @@ log = logging.getLogger(__name__)
def generateUUID(): # pylint: disable=C0103 def generateUUID(): # pylint: disable=C0103
""" Utility function; generates UUIDs """ """ Utility function; generates UUIDs """
return str(uuid.uuid4) return str(uuid.uuid4())
class VerificationException(Exception): class VerificationException(Exception):
...@@ -142,7 +142,7 @@ class PhotoVerification(StatusModel): ...@@ -142,7 +142,7 @@ class PhotoVerification(StatusModel):
# user IDs or something too easily guessable. # user IDs or something too easily guessable.
receipt_id = models.CharField( receipt_id = models.CharField(
db_index=True, db_index=True,
default=generateUUID, default=lambda: generateUUID(),
max_length=255, max_length=255,
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment