khaganat-web/navbar/migrations/0003_auto_20180120_1644.py

42 lines
1.3 KiB
Python
Raw Normal View History

2018-01-21 12:44:00 +00:00
# Generated by Django 2.0.1 on 2018-01-20 15:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('navbar', '0002_auto_20180120_1637'),
]
operations = [
migrations.CreateModel(
name='ElementDescription',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('language', models.CharField(choices=[('en', 'English'), ('fr', 'French')], max_length=10)),
('short_name', models.CharField(max_length=32)),
('full_name', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=512)),
],
),
migrations.RemoveField(
model_name='element',
name='description',
),
migrations.RemoveField(
model_name='element',
name='full_name',
),
migrations.RemoveField(
model_name='element',
name='short_name',
),
migrations.AddField(
model_name='elementdescription',
name='element',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='navbar.Element'),
),
]