mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 10:51:09 -05:00
Refactor URL patterns for parks and rides; update context fields in models to use ForeignKey for pghistory.Context
This commit is contained in:
@@ -86,16 +86,16 @@ class Migration(migrations.Migration):
|
||||
("closing_date", models.DateField(blank=True, null=True)),
|
||||
("created_at", models.DateTimeField(auto_now_add=True, null=True)),
|
||||
("updated_at", models.DateTimeField(auto_now=True)),
|
||||
(
|
||||
"park",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="areas",
|
||||
to=PARKS_APP_MODEL,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
options = {
|
||||
options={
|
||||
"ordering": ["name"],
|
||||
},
|
||||
),
|
||||
@@ -123,7 +123,6 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
),
|
||||
(
|
||||
"pgh_context",
|
||||
"pgh_context",
|
||||
models.ForeignKey(
|
||||
db_constraint=False,
|
||||
@@ -216,12 +215,12 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
(
|
||||
"pgh_obj",
|
||||
models.ForeignKey(
|
||||
db_constraint=False,
|
||||
on_delete=django.db.models.deletion.DO_NOTHING,
|
||||
related_name="events",
|
||||
to=PARKS_APP_MODEL,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
options={
|
||||
|
||||
Reference in New Issue
Block a user