aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/authtoken
diff options
context:
space:
mode:
authorJonas Liljestrand2012-11-18 21:12:06 +0100
committerJonas Liljestrand2012-11-18 21:12:06 +0100
commit91c0249c9d622670252030cb36ea872c08d91471 (patch)
treee37de19e9f74a7eb22aeed856e7ffa4b020a73c9 /rest_framework/authtoken
parent9f378d0dd44789cb98f3409604d9130d7a0032a8 (diff)
downloaddjango-rest-framework-91c0249c9d622670252030cb36ea872c08d91471.tar.bz2
fixed migration to support django 1.5
Diffstat (limited to 'rest_framework/authtoken')
-rw-r--r--rest_framework/authtoken/migrations/0001_initial.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rest_framework/authtoken/migrations/0001_initial.py b/rest_framework/authtoken/migrations/0001_initial.py
index 9d750381..2c0c40b1 100644
--- a/rest_framework/authtoken/migrations/0001_initial.py
+++ b/rest_framework/authtoken/migrations/0001_initial.py
@@ -3,6 +3,7 @@ import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
+from rest_framework.compat import User
class Migration(SchemaMigration):
@@ -11,7 +12,7 @@ class Migration(SchemaMigration):
# Adding model 'Token'
db.create_table('authtoken_token', (
('key', self.gf('django.db.models.fields.CharField')(max_length=40, primary_key=True)),
- ('user', self.gf('django.db.models.fields.related.OneToOneField')(related_name='auth_token', unique=True, to=orm['auth.User'])),
+ ('user', self.gf('django.db.models.fields.related.OneToOneField')(related_name='auth_token', unique=True, to=orm["%s.%s" % (User._meta.app_label, User._meta.object_name)])),
('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
))
db.send_create_signal('authtoken', ['Token'])