2014-09-17 18:23:53 +04:00
|
|
|
# -*- coding: utf-8 -*-
|
2014-06-23 16:52:18 +04:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import models, migrations
|
|
|
|
from django.conf import settings
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Token',
|
|
|
|
fields=[
|
2014-09-17 18:23:53 +04:00
|
|
|
('key', models.CharField(primary_key=True, serialize=False, max_length=40)),
|
2014-06-23 16:52:18 +04:00
|
|
|
('created', models.DateTimeField(auto_now_add=True)),
|
2014-09-17 18:23:53 +04:00
|
|
|
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL, related_name='auth_token')),
|
2014-06-23 16:52:18 +04:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
]
|