Fixes for issues in API calls, more error checking

This commit is contained in:
2010-06-15 20:21:16 +01:00
parent e50e4c87aa
commit 7d90ddaec0
2 changed files with 4 additions and 4 deletions

View File

@@ -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)