here we go

This commit is contained in:
pacnpal
2024-10-31 22:32:01 +00:00
parent c52f14e700
commit 80a9d61ca2
68 changed files with 3114 additions and 1485 deletions

View File

@@ -11,7 +11,7 @@ class Park(models.Model):
('CLOSED_PERM', 'Permanently Closed'),
('UNDER_CONSTRUCTION', 'Under Construction'),
('DEMOLISHED', 'Demolished'),
('RELOCATED', 'Relocated'), # Added to match Ride model
('RELOCATED', 'Relocated'),
]
name = models.CharField(max_length=255)
@@ -84,6 +84,9 @@ class Park(models.Model):
def get_formatted_location(self):
"""Get a formatted location string: $COUNTRY, $REGION, $CITY"""
if not self.country:
return ""
location = self.country.name
if self.region and self.city: