From cce0ad0f9f744c15c46cd6c2c61fedd4f2a643ba Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Wed, 7 Oct 2020 17:05:40 +0100 Subject: [PATCH] Prevent creating duplicate revisions on event Potential fix for #322 - I couldn't reproduce even before this change... --- RIGS/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RIGS/models.py b/RIGS/models.py index efceb9e4..39fa31bd 100644 --- a/RIGS/models.py +++ b/RIGS/models.py @@ -281,7 +281,7 @@ class EventManager(models.Manager): return event_count -@reversion.register(follow=['items']) +@reversion.register(follow=['items'], ignore_duplicates=True) # TODO Would be better to find why duplicates are created... class Event(models.Model, RevisionMixin): # Done to make it much nicer on the database PROVISIONAL = 0