Implement table change time for each model in Django?

I have a Django application that edits a database table in which another polling application and uses to update a downstream system. To minimize processing when the database was not changed between polls, I would like to use the global modification time for the model, which is updated every time a row is created / deleted / changed. How can I do this in ORM Django?

+5
source share
1 answer

Django does not give you access and does not support the "last modified" date on the table (model). You must implement this yourself, but it is not difficult.

- , post_save() post_delete() ( ) , " " , .

+2

All Articles