aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/authtoken
diff options
context:
space:
mode:
authorTom Christie2014-08-19 13:28:07 +0100
committerTom Christie2014-08-19 13:28:07 +0100
commitbf09c32de8f9d528f83e9cb7a2773d1f4c9ab563 (patch)
tree334c85c136fe1dc010f8d7860b9431b3a9d87e56 /rest_framework/authtoken
parente385a7b8eb6e538698f28128e43fe8bfaefd4e97 (diff)
downloaddjango-rest-framework-bf09c32de8f9d528f83e9cb7a2773d1f4c9ab563.tar.bz2
Code linting and added runtests.py
Diffstat (limited to 'rest_framework/authtoken')
-rw-r--r--rest_framework/authtoken/models.py1
-rw-r--r--rest_framework/authtoken/south_migrations/0001_initial.py9
2 files changed, 1 insertions, 9 deletions
diff --git a/rest_framework/authtoken/models.py b/rest_framework/authtoken/models.py
index 167fa531..db21d44c 100644
--- a/rest_framework/authtoken/models.py
+++ b/rest_framework/authtoken/models.py
@@ -1,6 +1,5 @@
import binascii
import os
-from hashlib import sha1
from django.conf import settings
from django.db import models
diff --git a/rest_framework/authtoken/south_migrations/0001_initial.py b/rest_framework/authtoken/south_migrations/0001_initial.py
index d5965e40..926de02b 100644
--- a/rest_framework/authtoken/south_migrations/0001_initial.py
+++ b/rest_framework/authtoken/south_migrations/0001_initial.py
@@ -1,15 +1,10 @@
# -*- coding: utf-8 -*-
-import datetime
from south.db import db
from south.v2 import SchemaMigration
-from django.db import models
-
-from rest_framework.settings import api_settings
-
try:
from django.contrib.auth import get_user_model
-except ImportError: # django < 1.5
+except ImportError: # django < 1.5
from django.contrib.auth.models import User
else:
User = get_user_model()
@@ -26,12 +21,10 @@ class Migration(SchemaMigration):
))
db.send_create_signal('authtoken', ['Token'])
-
def backwards(self, orm):
# Deleting model 'Token'
db.delete_table('authtoken_token')
-
models = {
'auth.group': {
'Meta': {'object_name': 'Group'},