mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Switch to using __unicode__ and django's smart __str__ handling, also added permalinks for HR models
This commit is contained in:
@@ -19,9 +19,6 @@ class AuthAPIKey(models.Model):
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
def __str__(self):
|
||||
return self.__unicode__()
|
||||
|
||||
class Meta:
|
||||
verbose_name = 'API Key'
|
||||
verbose_name_plural = "API Keys"
|
||||
|
||||
Reference in New Issue
Block a user