Switch to using __unicode__ and django's smart __str__ handling, also added permalinks for HR models

This commit is contained in:
2010-12-07 11:02:18 +00:00
parent 9e6544062c
commit dcac0e24b0
4 changed files with 20 additions and 23 deletions

View File

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