2018-05-23 21:28:27 +00:00
|
|
|
# Generated by Django 2.0.4 on 2018-05-21 21:54
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
2020-02-12 12:10:41 +00:00
|
|
|
from django.db import migrations, models
|
2018-05-23 21:28:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2019-06-16 12:32:24 +00:00
|
|
|
dependencies = [("program", "0054_auto_20180520_1509")]
|
2018-05-23 21:28:27 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2019-06-16 12:32:24 +00:00
|
|
|
name="Url",
|
2018-05-23 21:28:27 +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)),
|
|
|
|
("url", models.URLField(help_text="The actual URL")),
|
|
|
|
(
|
|
|
|
"event",
|
|
|
|
models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
help_text="The event proposal object this URL belongs to",
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
related_name="urls",
|
|
|
|
to="program.Event",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"eventproposal",
|
|
|
|
models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
help_text="The event proposal object this URL belongs to",
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
related_name="urls",
|
|
|
|
to="program.EventProposal",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"speaker",
|
|
|
|
models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
help_text="The speaker proposal object this URL belongs to",
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
related_name="urls",
|
|
|
|
to="program.Speaker",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"speakerproposal",
|
|
|
|
models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
help_text="The speaker proposal object this URL belongs to",
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
related_name="urls",
|
|
|
|
to="program.SpeakerProposal",
|
|
|
|
),
|
|
|
|
),
|
2018-05-23 21:28:27 +00:00
|
|
|
],
|
2019-06-16 12:32:24 +00:00
|
|
|
options={"abstract": False},
|
2018-05-23 21:28:27 +00:00
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2019-06-16 12:32:24 +00:00
|
|
|
name="UrlType",
|
2018-05-23 21:28:27 +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)),
|
|
|
|
(
|
|
|
|
"name",
|
|
|
|
models.CharField(help_text="The name of this type", max_length=25),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"icon",
|
|
|
|
models.CharField(
|
|
|
|
help_text="Name of the fontawesome icon to use without the 'fa-' part",
|
|
|
|
max_length=100,
|
|
|
|
),
|
|
|
|
),
|
2018-05-23 21:28:27 +00:00
|
|
|
],
|
2019-06-16 12:32:24 +00:00
|
|
|
options={"abstract": False},
|
2018-05-23 21:28:27 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
2019-06-16 12:32:24 +00:00
|
|
|
model_name="url",
|
|
|
|
name="urltype",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
help_text="The type of this URL",
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
to="program.UrlType",
|
|
|
|
),
|
2018-05-23 21:28:27 +00:00
|
|
|
),
|
|
|
|
]
|