From f3ecc14a425b1214fa2d476d5dbccf6481e1ea63 Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Tue, 10 Dec 2024 12:12:53 +0100 Subject: [PATCH] Fix typo --- djangocms_text/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_text/html.py b/djangocms_text/html.py index 22d6fd4c..a99d6449 100644 --- a/djangocms_text/html.py +++ b/djangocms_text/html.py @@ -250,7 +250,7 @@ def render_dynamic_attributes(dyn_html: str, admin_objects: bool = False, remove for elem in update_queue: for attr, value in elem.attrib.items(): if attr in dynamic_attr_pool: - target_attr = attr[len(prefix) :] + target_attr = attr[len(prefix):] try: model, pk = value.rsplit(":", 1) obj = from_db[model.strip()][int(pk.strip())]