Geoffrey-Django/migrations/0003_apitoken.py

22 lines
664 B
Python
Raw Normal View History

2019-01-14 14:05:01 +00:00
# Generated by Django 2.1.2 on 2018-12-29 22:28
import GeoffreyApp.util
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('GeoffreyApp', '0002_auto_20181229_2216'),
]
operations = [
migrations.CreateModel(
name='APIToken',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('key', models.CharField(default=GeoffreyApp.util.create_token, max_length=25, unique=True)),
('name', models.CharField(blank=True, max_length=50)),
],
),
]