This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tested against Django 3.2.14. | |
from django.db.models.base import DEFERRED | |
def track_data(*fields): | |
"""Tracks property changes on a model instance. | |
Simplified version of David Cramer's gist: | |
https://gist.github.com/dcramer/730765 |