1👍
✅
Yeah this can be done by adding a Django LogEntry. LogEntry is the model used by Django to maintain the Django admin edit history. You can use the same model to track changes to your blog.
Refer to this Stackoverflow answer on how to use it.
https://stackoverflow.com/a/988202/1774657
0👍
Django/Python version:
I would make two models: FirstBlog() and EditedBlog() and bind them via OnetoMany together.
everytime you edit the FirstBlog() version, you create another EditedBlog() version with information: who edited it, when edited, what edited.
- Django Rest Setup for Foreign key values
- Best practice in Django to send request form the template to the database in order to download data
- Send, receive, save local image file with requests / django rest framework
- Django ID based dynamic URL with base64
- Django Restful: Nested Serializers
Source:stackexchange.com