How to get django-simple-history working with Tastypie?

I need to keep a complete history of changes made to objects. I find django-simple-history very attractive, but it does not work with django-tastypie . If I send data to the API using PUT (object update), the object is updated OK, but the history records are not updated. If I manually change objects using the shell. /manage.py, everything works fine. It seems like tastypie bypasses signals or something like that.

Any ideas how I could get this to work as expected?

+5
source share
1 answer

Without looking at the code, I will try to solve this problem analytically.

django-simple-history, , post_save/post_delete model.Manager.

, , TastyPie, - ModelResource, . - .

, simple_history/models.py, , contribute_to_class models.signals.class_prepared.connect(self.finalize, sender=cls), , TastyPie ...

, , TastyPie , , , - ? github?

0

All Articles