On ne met pas à jour les informations modérées quand on met à jour un import
Fix #214
This commit is contained in:
parent
03e10e91e2
commit
98092de1f0
@ -1380,7 +1380,8 @@ class Event(models.Model):
|
|||||||
|
|
||||||
def update(self, other, all):
|
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)
|
self.organisers.set(other.pending_organisers)
|
||||||
|
|
||||||
# set attributes
|
# set attributes
|
||||||
@ -1456,7 +1457,8 @@ class Event(models.Model):
|
|||||||
if same_imported.other_versions.representative != same_imported:
|
if same_imported.other_versions.representative != same_imported:
|
||||||
same_imported.other_versions.representative = None
|
same_imported.other_versions.representative = None
|
||||||
same_imported.other_versions.save()
|
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.set_in_importation_process()
|
||||||
same_imported.prepare_save()
|
same_imported.prepare_save()
|
||||||
to_update.append(same_imported)
|
to_update.append(same_imported)
|
||||||
|
Loading…
Reference in New Issue
Block a user