Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
4b936b22f0 [DEPENDABOT] Update: Bump django-pghistory from 3.5.2 to 3.6.0
Bumps [django-pghistory](https://github.com/AmbitionEng/django-pghistory) from 3.5.2 to 3.6.0.
- [Release notes](https://github.com/AmbitionEng/django-pghistory/releases)
- [Changelog](https://github.com/AmbitionEng/django-pghistory/blob/main/CHANGELOG.md)
- [Commits](https://github.com/AmbitionEng/django-pghistory/compare/3.5.2...3.6.0)

---
updated-dependencies:
- dependency-name: django-pghistory
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 17:56:22 +00:00
3 changed files with 6 additions and 6 deletions

View File

@@ -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("Park not found for historical slug record") print(f"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("Searching pghistory events") print(f"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("Park not found for pghistory event") print(f"Park not found for pghistory event")
pass pass
else: else:
print("No pghistory event found") print("No pghistory event found")

View File

@@ -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("\nPG History records:") print(f"\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}")

View File

@@ -12,7 +12,7 @@ pyjwt==2.10.1
# Database # Database
psycopg2-binary==2.9.10 psycopg2-binary==2.9.10
dj-database-url==2.3.0 dj-database-url==2.3.0
django-pghistory==3.5.2 # For model history tracking django-pghistory==3.6.0 # For model history tracking
# Email # Email
requests==2.32.3 # For ForwardEmail.net API requests==2.32.3 # For ForwardEmail.net API