mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-29 10:47:00 -05:00
Compare commits
1 Commits
3e477a61bd
...
pixeebot/d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d253c2e27 |
@@ -165,13 +165,13 @@ class Park(TrackedModel):
|
|||||||
print(f"Found park from historical slug: {park.name}")
|
print(f"Found park from historical slug: {park.name}")
|
||||||
return park, True
|
return park, True
|
||||||
except cls.DoesNotExist:
|
except cls.DoesNotExist:
|
||||||
print(f"Park not found for historical slug record")
|
print("Park not found for historical slug record")
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
print("No historical slug record found")
|
print("No historical slug record found")
|
||||||
|
|
||||||
# Try pghistory events
|
# Try pghistory events
|
||||||
print(f"Searching pghistory events")
|
print("Searching pghistory events")
|
||||||
event_model = getattr(cls, 'event_model', None)
|
event_model = getattr(cls, 'event_model', None)
|
||||||
if event_model:
|
if event_model:
|
||||||
historical_event = event_model.objects.filter(
|
historical_event = event_model.objects.filter(
|
||||||
@@ -185,7 +185,7 @@ class Park(TrackedModel):
|
|||||||
print(f"Found park from pghistory: {park.name}")
|
print(f"Found park from pghistory: {park.name}")
|
||||||
return park, True
|
return park, True
|
||||||
except cls.DoesNotExist:
|
except cls.DoesNotExist:
|
||||||
print(f"Park not found for pghistory event")
|
print("Park not found for pghistory event")
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
print("No pghistory event found")
|
print("No pghistory event found")
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ class ParkModelTests(TestCase):
|
|||||||
historical_records = event_model.objects.filter(
|
historical_records = event_model.objects.filter(
|
||||||
pgh_obj_id=park.id
|
pgh_obj_id=park.id
|
||||||
).order_by('-pgh_created_at')
|
).order_by('-pgh_created_at')
|
||||||
print(f"\nPG History records:")
|
print("\nPG History records:")
|
||||||
for record in historical_records:
|
for record in historical_records:
|
||||||
print(f"- Event ID: {record.pgh_id}")
|
print(f"- Event ID: {record.pgh_id}")
|
||||||
print(f" Name: {record.name}")
|
print(f" Name: {record.name}")
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ Pillow==11.1.0 # For image handling
|
|||||||
django-cleanup==9.0.0 # Automatically delete files
|
django-cleanup==9.0.0 # Automatically delete files
|
||||||
piexif==1.1.3 # For image EXIF metadata handling
|
piexif==1.1.3 # For image EXIF metadata handling
|
||||||
django-filter==24.3
|
django-filter==24.3
|
||||||
django-htmx==1.23.0
|
django-htmx==1.22.0
|
||||||
whitenoise==6.9.0 # Static file serving
|
whitenoise==6.9.0 # Static file serving
|
||||||
pycountry==24.6.1
|
pycountry==24.6.1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user