Compare commits

...

2 Commits

Author SHA1 Message Date
robertmx
de12023311 Fix: remove duplicate base path in websocket urls (#10194) 2025-06-16 10:50:15 -07:00
shamoon
60ebdc0ad6 Fix: use hard delete for custom fields with workflow removal (#10191) 2025-06-16 07:09:22 -07:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1021,7 +1021,7 @@ def run_workflows(
if action.remove_all_custom_fields:
if not use_overrides:
CustomFieldInstance.objects.filter(document=document).delete()
CustomFieldInstance.objects.filter(document=document).hard_delete()
else:
overrides.custom_fields = None
elif action.remove_custom_fields.exists():
@@ -1029,7 +1029,7 @@ def run_workflows(
CustomFieldInstance.objects.filter(
field__in=action.remove_custom_fields.all(),
document=document,
).delete()
).hard_delete()
elif overrides.custom_fields:
for field in action.remove_custom_fields.filter(
pk__in=overrides.custom_fields.keys(),

View File

@@ -363,7 +363,7 @@ urlpatterns = [
websocket_urlpatterns = [
path(settings.BASE_URL.lstrip("/") + "ws/status/", StatusConsumer.as_asgi()),
path("ws/status/", StatusConsumer.as_asgi()),
]
# Text in each page's <h1> (and above login form).