mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +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
|
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):
|
class Event(models.Model, RevisionMixin):
|
||||||
# Done to make it much nicer on the database
|
# Done to make it much nicer on the database
|
||||||
PROVISIONAL = 0
|
PROVISIONAL = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user