[Fixed]-How to save blog editing history?

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.

Leave a comment