evolution-events / Artaxerxes

Evolution Events information system
http://www.evolution-events.nl
4 stars 0 forks source link

Enforce creation of revisions #103

Open matthijskooijman opened 4 years ago

matthijskooijman commented 4 years ago

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: https://github.com/etianen/django-reversion/issues/829