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

Import unicode_literals

This commit is contained in:
Jeremy Stretch
2017-05-24 11:33:11 -04:00
parent 9aad8a7774
commit f21c6bca00
109 changed files with 320 additions and 131 deletions

View File

@ -1,3 +1,4 @@
from __future__ import unicode_literals
import binascii
import os
@ -26,7 +27,7 @@ class Token(models.Model):
def __str__(self):
# Only display the last 24 bits of the token to avoid accidental exposure.
return u"{} ({})".format(self.key[-6:], self.user)
return "{} ({})".format(self.key[-6:], self.user)
def save(self, *args, **kwargs):
if not self.key: