You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove use of auto_id without pattern for dynamically added sockets (#4473)
Replace use of auto_id with a dedicated form_id. Supplying `auto_id`
changes django's behaviour of setting the id on form elements (it
removed the default "id_" prefix) as explained in the [docs
here](https://docs.djangoproject.com/en/5.2/ref/forms/api/#configuring-form-elements-html-id-attributes-and-label-tags).
Because we only use the value to set the form id, we can use our own
context variable for that.
Also clean up some things:
- Rename `DICOMUploadWidgetSuffixes` to `DICOM_UPLOAD_WIDGET_SUFFIXES`
- Only check if socket exists for socket slugs that start with the right
prefix (reduce calls to database when loading form fields for
dynamically added sockets)
Related to DIAGNijmegen/rse-roadmap#435
0 commit comments