mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 15:11:09 -05:00
here we go
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user