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

29 lines
1 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:13
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)),
('icon', models.FilePathField(match='*.png', path='/home/rodolphe/projects/khaganat-web/navbar/static/icons')),
('short_name', models.CharField(max_length=32)),
('full_name', models.CharField(max_length=64)),
('description', models.CharField(max_length=512)),
('parent', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='navbar.Element')),
],
),
]