mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Update authtoken latest Django 1.7 migration
This commit is contained in:
parent
92fb08bc6d
commit
a37db382c6
|
@ -1,4 +1,4 @@
|
||||||
# encoding: utf8
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import models, migrations
|
from django.db import models, migrations
|
||||||
|
@ -16,11 +16,10 @@ class Migration(migrations.Migration):
|
||||||
name='Token',
|
name='Token',
|
||||||
fields=[
|
fields=[
|
||||||
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
|
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
|
||||||
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL, to_field='id')),
|
|
||||||
('created', models.DateTimeField(auto_now_add=True)),
|
('created', models.DateTimeField(auto_now_add=True)),
|
||||||
|
('user', models.OneToOneField(related_name=b'auth_token', to=settings.AUTH_USER_MODEL)),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'abstract': False,
|
|
||||||
},
|
},
|
||||||
bases=(models.Model,),
|
bases=(models.Model,),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user