mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Fixes for issues in API calls, more error checking
This commit is contained in:
@@ -10,7 +10,7 @@ class AuthAPIKey(models.Model):
|
||||
key = models.CharField("API Key", max_length=200)
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if not key or key = '':
|
||||
if not key or key == '':
|
||||
self.key = uuid.uuid4()
|
||||
|
||||
models.Model.save(self, *args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user