mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-16 21:12:13 +00:00
Prevent creating duplicate revisions on event
Potential fix for #322 - I couldn't reproduce even before this change...
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user