khaganat-web/navbar/migrations/0001_initial.py

38 lines
1.6 KiB
Python
Raw Permalink Normal View History

2018-01-27 20:15:54 +00:00
# Generated by Django 2.0.1 on 2018-01-27 20:08
2018-01-21 12:44:00 +00:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Element',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('link', models.CharField(blank=True, max_length=512)),
('new_window', models.BooleanField(default=False)),
2018-01-27 20:15:54 +00:00
('icon', models.FilePathField(blank=True, match='.png', null=True, path='/home/rodolphe/projects/khaganat-web/navbar/static/icons')),
('weight', models.PositiveSmallIntegerField()),
('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='navbar.Element')),
],
),
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)),
2018-01-21 12:44:00 +00:00
('short_name', models.CharField(max_length=32)),
2018-01-27 20:15:54 +00:00
('full_name', models.CharField(blank=True, max_length=64)),
('description', models.CharField(blank=True, max_length=512)),
('element', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='navbar.Element')),
2018-01-21 12:44:00 +00:00
],
),
]