cqtu/contest/migrations/0012_auto_20170126_1852.py

30 lines
923 B
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-26 18:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contest', '0011_auto_20170125_0126'),
]
operations = [
migrations.CreateModel(
name='EntryCategory',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=40, unique=True)),
('description', models.TextField(blank=True)),
],
),
migrations.AddField(
model_name='user',
name='cat',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='contest.EntryCategory'),
),
]