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

Enforce creation of revisions #103

Open
matthijskooijman opened this issue Apr 14, 2020 · 0 comments
Open

Enforce creation of revisions #103

matthijskooijman opened this issue Apr 14, 2020 · 0 comments

Comments

@matthijskooijman
Copy link
Member

It would probably be good to enforce that a revision is created for every change to the database (e.g. to prevent forgetting create_revision somewhere).

The best way for this is probably a pre-save hook that tests whether a revision is active. Might be nice if django-reversion would offer this builtin, but that might need some more convincing, see: etianen/django-reversion#829

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

1 participant