Refactor URL patterns for parks and rides; update context fields in models to use ForeignKey for pghistory.Context

This commit is contained in:
pacnpal
2025-02-10 10:54:34 -05:00
parent 9ed28b15b4
commit b4c474c496
12 changed files with 670 additions and 495 deletions

View File

@@ -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={