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:
@ -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:
|
||||
|
Reference in New Issue
Block a user