parent
d7ec80ff01
commit
1287d9ee06
@ -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)
|
||||
|
@ -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."))
|
||||
|
Loading…
Reference in New Issue
Block a user