diff options
| author | Stephan Groß | 2013-03-04 13:53:39 +0100 | 
|---|---|---|
| committer | Stephan Groß | 2013-03-04 13:53:39 +0100 | 
| commit | 4cdb6b2959f6d13417c48781d53c4e7e685934e7 (patch) | |
| tree | 09d41b891cc1afd7a075a0fb57a0e932969df0e5 /rest_framework/authtoken | |
| parent | 282af6057f30b5af4665d687200ee1ebf82fcf00 (diff) | |
| download | django-rest-framework-4cdb6b2959f6d13417c48781d53c4e7e685934e7.tar.bz2 | |
Fix authtoken migration
Diffstat (limited to 'rest_framework/authtoken')
| -rw-r--r-- | rest_framework/authtoken/migrations/0001_initial.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/rest_framework/authtoken/migrations/0001_initial.py b/rest_framework/authtoken/migrations/0001_initial.py index f4e052e4..b0c81bf1 100644 --- a/rest_framework/authtoken/migrations/0001_initial.py +++ b/rest_framework/authtoken/migrations/0001_initial.py @@ -4,6 +4,8 @@ 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 @@ -15,6 +17,8 @@ else:  class Migration(SchemaMigration): +    depends_on = api_settings.REQUIRED_MIGRATIONS +      def forwards(self, orm):          # Adding model 'Token'          db.create_table('authtoken_token', ( @@ -45,7 +49,7 @@ class Migration(SchemaMigration):              'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})          },          "%s.%s" % (User._meta.app_label, User._meta.module_name): { -            'Meta': {'object_name': 'User'}, +            'Meta': {'object_name': User._meta.module_name},              'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),              'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),              'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), | 
