2016-12-25 14:52:55 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.10.4 on 2016-12-24 22:11
|
2017-01-30 11:16:07 +00:00
|
|
|
|
2016-12-25 14:52:55 +00:00
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
2019-06-16 12:32:24 +00:00
|
|
|
dependencies = [("camps", "0010_auto_20161220_1714")]
|
2016-12-25 14:52:55 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2019-06-16 12:32:24 +00:00
|
|
|
name="InfoCategory",
|
2016-12-25 14:52:55 +00:00
|
|
|
fields=[
|
2019-06-16 12:32:24 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("created", models.DateTimeField(auto_now_add=True)),
|
|
|
|
("updated", models.DateTimeField(auto_now=True)),
|
|
|
|
(
|
|
|
|
"headline",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The headline of this info category", max_length=100
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"anchor",
|
|
|
|
models.SlugField(
|
|
|
|
help_text="The HTML anchor to use for this info category."
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"weight",
|
|
|
|
models.PositiveIntegerField(
|
|
|
|
help_text="Determines sorting/ordering. Heavier categories sink to the bottom. Categories with the same weight are ordered alphabetically."
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"camp",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
related_name="infocategories",
|
|
|
|
to="camps.Camp",
|
|
|
|
),
|
|
|
|
),
|
2016-12-25 14:52:55 +00:00
|
|
|
],
|
2019-06-16 12:32:24 +00:00
|
|
|
options={"ordering": ["-weight", "headline"]},
|
2016-12-25 14:52:55 +00:00
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2019-06-16 12:32:24 +00:00
|
|
|
name="InfoItem",
|
2016-12-25 14:52:55 +00:00
|
|
|
fields=[
|
2019-06-16 12:32:24 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("created", models.DateTimeField(auto_now_add=True)),
|
|
|
|
("updated", models.DateTimeField(auto_now=True)),
|
|
|
|
(
|
|
|
|
"headline",
|
|
|
|
models.CharField(
|
|
|
|
help_text="Headline of this info item.", max_length=100
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"anchor",
|
|
|
|
models.SlugField(
|
|
|
|
help_text="The HTML anchor to use for this info item."
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"body",
|
|
|
|
models.TextField(
|
|
|
|
help_text="Body of this info item. Markdown is supported."
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"weight",
|
|
|
|
models.PositiveIntegerField(
|
|
|
|
help_text="Determines sorting/ordering. Heavier items sink to the bottom. Items with the same weight are ordered alphabetically."
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"category",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
related_name="infoitems",
|
|
|
|
to="info.InfoCategory",
|
|
|
|
),
|
|
|
|
),
|
2016-12-25 14:52:55 +00:00
|
|
|
],
|
2019-06-16 12:32:24 +00:00
|
|
|
options={"ordering": ["-weight", "headline"]},
|
2016-12-25 14:52:55 +00:00
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2019-06-16 12:32:24 +00:00
|
|
|
name="infoitem",
|
|
|
|
unique_together=set([("headline", "category"), ("anchor", "category")]),
|
2016-12-25 14:52:55 +00:00
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
2019-06-16 12:32:24 +00:00
|
|
|
name="infocategory",
|
|
|
|
unique_together=set([("headline", "camp"), ("anchor", "camp")]),
|
2016-12-25 14:52:55 +00:00
|
|
|
),
|
|
|
|
]
|