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})