diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index 117fd91..e816b4e 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -1380,7 +1380,8 @@ class Event(models.Model): def update(self, other, all): - if other.has_pending_organisers(): + # do not update if all is false + if other.has_pending_organisers() and not all: self.organisers.set(other.pending_organisers) # set attributes @@ -1456,7 +1457,8 @@ class Event(models.Model): if same_imported.other_versions.representative != same_imported: same_imported.other_versions.representative = None same_imported.other_versions.save() - same_imported.update(event, pure) # we only update all tags if it"s a pure import + # we only update local information if it's a pure import and has no moderated_date + same_imported.update(event, pure and same_imported.moderated_date is None) same_imported.set_in_importation_process() same_imported.prepare_save() to_update.append(same_imported)