mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 14:51:08 -05:00
weird header stuff
This commit is contained in:
@@ -9,6 +9,7 @@ from simple_history.models import HistoricalRecords
|
||||
|
||||
from companies.models import Company
|
||||
from media.models import Photo
|
||||
from history_tracking.models import HistoricalModel
|
||||
|
||||
|
||||
def normalize_coordinate(value, max_digits, decimal_places):
|
||||
@@ -53,7 +54,7 @@ def validate_longitude_digits(value):
|
||||
return validate_coordinate_digits(value, 10, 6)
|
||||
|
||||
|
||||
class Park(models.Model):
|
||||
class Park(HistoricalModel):
|
||||
STATUS_CHOICES = [
|
||||
("OPERATING", "Operating"),
|
||||
("CLOSED_TEMP", "Temporarily Closed"),
|
||||
@@ -176,7 +177,7 @@ class Park(models.Model):
|
||||
raise cls.DoesNotExist()
|
||||
|
||||
|
||||
class ParkArea(models.Model):
|
||||
class ParkArea(HistoricalModel):
|
||||
park = models.ForeignKey(Park, on_delete=models.CASCADE, related_name="areas")
|
||||
name = models.CharField(max_length=255)
|
||||
slug = models.SlugField(max_length=255)
|
||||
|
||||
Reference in New Issue
Block a user