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

Removed Python 2 string compatibility

This commit is contained in:
Jeremy Stretch
2018-08-14 11:58:42 -04:00
parent ac546a9711
commit 980d62d579
277 changed files with 1 additions and 620 deletions

View File

@@ -1,5 +1,3 @@
from __future__ import unicode_literals
import binascii
import os
@@ -7,10 +5,8 @@ from django.contrib.auth.models import User
from django.core.validators import MinLengthValidator
from django.db import models
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Token(models.Model):
"""
An API token used for user authentication. This extends the stock model to allow each user to have multiple tokens.