diff options
| author | Tom Christie | 2014-08-19 13:28:07 +0100 | 
|---|---|---|
| committer | Tom Christie | 2014-08-19 13:28:07 +0100 | 
| commit | bf09c32de8f9d528f83e9cb7a2773d1f4c9ab563 (patch) | |
| tree | 334c85c136fe1dc010f8d7860b9431b3a9d87e56 /rest_framework/authtoken/south_migrations | |
| parent | e385a7b8eb6e538698f28128e43fe8bfaefd4e97 (diff) | |
| download | django-rest-framework-bf09c32de8f9d528f83e9cb7a2773d1f4c9ab563.tar.bz2 | |
Code linting and added runtests.py
Diffstat (limited to 'rest_framework/authtoken/south_migrations')
| -rw-r--r-- | rest_framework/authtoken/south_migrations/0001_initial.py | 9 | 
1 files changed, 1 insertions, 8 deletions
| 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'}, | 
