13👍
✅
http://code.activestate.com/pypm/django-dirtyfields/
Tracks dirty/changed fields on a django model instance.
- [Django]-Django with Angular 2
- [Django]-Django + PostgreSQL: How to reset primary key?
- [Django]-Best way to get query string from a URL in python?
3👍
Sounds to me like what you want is Signals: http://docs.djangoproject.com/en/1.2/topics/signals/
You could use a post_save
signal to update a related field in another model to store the previous value. Then on the next go-round you’d have something to compare.
- [Django]-Django: How to build a custom form widget?
- [Django]-Malformed Packet: Django admin nested form can't submit, connection was reset
- [Django]-How can I subtract or add 100 years to a datetime field in the database in Django?
3👍
You might try computing a checksum of the record values when you save them. Then when you read it later, recompute the checksum and see if it has changed. Perhaps the crc32
function in the Python zlib
standard module. (I’m not sure what kind of performance this would have. So you may want to investigate that.)
- [Django]-Sharing models between Django apps
- [Django]-Allowing only single active session per user in Django app
- [Django]-How to format dateTime in django template?
- [Django]-Django Rest Framework remove csrf
- [Django]-Django best approach for creating multiple type users
- [Django]-Machine Learning (tensorflow / sklearn) in Django?
Source:stackexchange.com