I'm working on a project where I use Django's admin "power" to manage a few models, which are to be displayed in a visualization (made with JavaScript). Javascript can read the data in json, so I need a way to convert the data for my models to json. I'll use Django's serialization tools.
I figure it makes more sense to generate a json file only when a create / edit / delete action has been performed on the admin side.
How can I make sure a callback (to do the serialization) is triggered every time the data changes in the admin side ?