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

Use object_id other than primary key #963

Open
sourabhv opened this issue Feb 24, 2024 · 1 comment
Open

Use object_id other than primary key #963

sourabhv opened this issue Feb 24, 2024 · 1 comment

Comments

@sourabhv
Copy link

I am working on cleaning an old database where the revisions of data are kept in same table with different id PK but share the same uuid (not the PK). When moving old data into django reversion before deleting it from this table, it picks up id and does not map values based on uuid. Is there a way to tell reversion to use a column besides pk?

@etianen
Copy link
Owner

etianen commented Feb 24, 2024

This isn't supported right now, but could be with an additional parameter passed to reversion.register(). I'd happily take a PR for it.

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

No branches or pull requests

2 participants