Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc request: FAQ on backfilling models with existing data #94

Open
shangxiao opened this issue May 3, 2023 · 1 comment
Open

Doc request: FAQ on backfilling models with existing data #94

shangxiao opened this issue May 3, 2023 · 1 comment

Comments

@shangxiao
Copy link

shangxiao commented May 3, 2023

Suggestion: Add an FAQ on how to backfill audit events for models with existing data.

I saw this section in the docs on manual tracking, it helped me to add audit events for the current data I have: https://django-pghistory.readthedocs.io/en/2.7.0/event_tracking.html#manual-tracking

The FAQ could probably just link to that. Might also be worth noting that in the data migration you must refer to the actual model, not the fake model used in migration state, otherwise pghistory won't recognise it (there are no trackers on the fake models).

PS: Thanks for all the hard work on this useful lib 🏆

@tobiasmcnulty
Copy link

Thanks for creating this issue and linking to the solution!

A FAQ item for "backfilling events" or "populating initial events" sounds quite helpful to me, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants