mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 22:11:08 -05:00
weird header stuff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user