ccdb-api/ccdb/utils/migrations/0001_initial.py
Matthew Dillon 910d3b4beb Admin Section API (#11)
Models for managing admin pages
2016-09-05 17:03:01 -07:00

39 lines
1.2 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-29 04:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AdminEntry',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('package', models.CharField(max_length=255)),
('model', models.CharField(max_length=255)),
('sort', models.IntegerField()),
],
),
migrations.CreateModel(
name='AdminSection',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('sort', models.IntegerField()),
],
),
migrations.AddField(
model_name='adminentry',
name='section',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='utils.AdminSection'),
),
]