diff --git a/src/agenda_culturel/forms.py b/src/agenda_culturel/forms.py index 5560752..4a93e3e 100644 --- a/src/agenda_culturel/forms.py +++ b/src/agenda_culturel/forms.py @@ -484,7 +484,7 @@ class SelectEventInList(Form): class MergeDuplicates(Form): required_css_class = 'required' - checkboxes_fields = ["reference_urls", "description"] + checkboxes_fields = ["reference_urls", "description", "tags"] def __init__(self, *args, **kwargs): self.duplicates = kwargs.pop("duplicates", None) diff --git a/src/agenda_culturel/views.py b/src/agenda_culturel/views.py index 0e2953d..f6d4850 100644 --- a/src/agenda_culturel/views.py +++ b/src/agenda_culturel/views.py @@ -1307,11 +1307,14 @@ def merge_duplicate(request, pk): new_event_data["local_image"] = getattr(selected, "local_image") + organisers = new_event_data.pop('organisers', None) # create a new event that merge the selected events new_event = Event(**new_event_data) new_event.status = Event.STATUS.PUBLISHED new_event.other_versions = edup new_event.save() + if not organisers is None: + new_event.organisers.set(organisers.all()) edup.fix(new_event) messages.info(request, _("Creation of a merged event has been successfully completed."))