mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 15:31:08 -05:00
fix commas
This commit is contained in:
17
history_tracking/models.py
Normal file
17
history_tracking/models.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# history_tracking/models.py
|
||||
from django.db import models
|
||||
from simple_history.models import HistoricalRecords
|
||||
from .mixins import HistoricalChangeMixin
|
||||
|
||||
|
||||
class Park(models.Model):
|
||||
name = models.CharField(max_length=200)
|
||||
# ... other fields ...
|
||||
history = HistoricalRecords()
|
||||
|
||||
@property
|
||||
def _history_model(self):
|
||||
return self.history.model
|
||||
|
||||
|
||||
# Apply the mixin
|
||||
Reference in New Issue
Block a user