mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Update initial migration to work on Python 3
This commit is contained in:
parent
a37db382c6
commit
de5fbf7d63
|
@ -1,4 +1,4 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import models, migrations
|
from django.db import models, migrations
|
||||||
|
@ -15,9 +15,9 @@ class Migration(migrations.Migration):
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='Token',
|
name='Token',
|
||||||
fields=[
|
fields=[
|
||||||
('key', models.CharField(max_length=40, serialize=False, primary_key=True)),
|
('key', models.CharField(primary_key=True, serialize=False, max_length=40)),
|
||||||
('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)),
|
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL, related_name='auth_token')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user