1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Unicode handling cleanup

This commit is contained in:
Jeremy Stretch
2016-07-18 14:48:51 -04:00
parent 7a50cd2320
commit 0d46a65a36
6 changed files with 16 additions and 16 deletions

View File

@@ -219,8 +219,8 @@ class Secret(CreatedUpdatedModel):
def __unicode__(self):
if self.role and self.device:
return "{} for {}".format(self.role, self.device)
return "Secret"
return u'{} for {}'.format(self.role, self.device)
return u'Secret'
def get_absolute_url(self):
return reverse('secrets:secret', args=[self.pk])