Revert "Prevent creating duplicate revisions on event"

Apparently it was too strong at preventing dupes...

This reverts commit cce0ad0f9f.

# Conflicts:
#	RIGS/models.py
This commit is contained in:
2020-10-07 17:30:06 +01:00
parent 025a31f15a
commit af7d3c4070

View File

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