mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
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:
@@ -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})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user