Home:ALL Converter>django-simple-history populate history when existing history present

django-simple-history populate history when existing history present

Ask Time:2022-02-01T05:07:43         Author:beldaz

Json Formatter

After setting up history for a model using django-simple-history, I wanted to run populate_history to populate the history table based on the existing contents of the table. However, other users have already made a number of changes, causing the history table to be partially populated. Running populate_history --auto simply results in message Existing history found, skipping model.

I wish to retain the existing history, but populate history for all records not currently stored in the history. Is there a way to do this?

Author:beldaz,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/70932848/django-simple-history-populate-history-when-existing-history-present
yy