From af7d3c40706bbe9ff16a3d438294171673fe5d2d Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Wed, 7 Oct 2020 17:30:06 +0100 Subject: [PATCH] Revert "Prevent creating duplicate revisions on event" Apparently it was too strong at preventing dupes... This reverts commit cce0ad0f9f744c15c46cd6c2c61fedd4f2a643ba. # Conflicts: # RIGS/models.py --- RIGS/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/RIGS/models.py b/RIGS/models.py index 4c50531a..7a2798a5 100644 --- a/RIGS/models.py +++ b/RIGS/models.py @@ -281,7 +281,7 @@ class EventManager(models.Manager): return event_count -@reversion.register(follow=['items'])#, ignore_duplicates=True) # TODO Would be better to find why duplicates are created... +@reversion.register(follow=['items']) class Event(models.Model, RevisionMixin): # Done to make it much nicer on the database PROVISIONAL = 0 @@ -533,8 +533,6 @@ class EventAuthorisation(models.Model, RevisionMixin): amount = models.DecimalField(max_digits=10, decimal_places=2, verbose_name="authorisation amount") sent_by = models.ForeignKey('Profile', on_delete=models.CASCADE) - #reversion_perm = 'RIGS.view_eventauthorisation' - def get_absolute_url(self): return reverse_lazy('event_detail', kwargs={'pk': self.event.pk})