Image des posts

- correction de l'alt des images importées de FB
- quand on fusionne des événements, l'image locale suit l'image.

Fix #123
This commit is contained in:
Jean-Marie Favreau 2024-09-03 21:47:44 +02:00
parent f401c611a3
commit 1a06c45acc

View File

@ -1235,6 +1235,9 @@ def merge_duplicate(request, pk):
new_event_data[f["key"]] = sum(values, [])
else:
new_event_data[f["key"]] = getattr(events[selected], f["key"])
# local_image field follows image field
if f["key"] == "image" and "local_image" not in new_event_data:
new_event_data["local_image"] = getattr(events[selected], "local_image")
for specific_tag in ["uuids", "import_sources"]:
new_event_data[specific_tag] = sum(