weird header stuff

This commit is contained in:
pacnpal
2024-11-03 22:03:56 +00:00
parent d4b08bbaed
commit 9de9311670
34 changed files with 5047 additions and 185 deletions

View File

@@ -4,14 +4,11 @@ from simple_history.models import HistoricalRecords
from .mixins import HistoricalChangeMixin
class Park(models.Model):
name = models.CharField(max_length=200)
# ... other fields ...
history = HistoricalRecords()
class HistoricalModel(models.Model):
"""Abstract base class for models with history tracking"""
class Meta:
abstract = True
@property
def _history_model(self):
return self.history.model
# Apply the mixin