From 26341cce3fcc00b800a208d4d06eec581b50c741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Fri, 13 Dec 2024 10:42:51 +0000 Subject: [PATCH] make UpdateObjectOperation work again with slugs --- src/c3nav/editor/operations.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/c3nav/editor/operations.py b/src/c3nav/editor/operations.py index 9aeebaf1..34d32e77 100644 --- a/src/c3nav/editor/operations.py +++ b/src/c3nav/editor/operations.py @@ -152,15 +152,6 @@ class UpdateObjectOperation(BaseOperation): else: values[field_name] = value data = [] - if issubclass(model, LocationSlug) and "slug" in values: - data.append({ - "model": f"mapdata.locationslug", - "pk": self.obj.id, - "fields": { - "slug": values["slug"], - }, - }) - values = {key: val for key, val in values.items() if key != "slug"} data.append({ "model": f"mapdata.{self.obj.model}", "pk": self.obj.id,