NSPanelManager
NSPanelManager copied to clipboard
Reordering Rooms give 500 Error
Describe the bug After adding some Rooms i want to reorder the rooms by using the "=" in front of a room name. when releasing the room above another item an XHR request gets made but i get a 500 error: \
request URL: http://{LANIP}:8181/htmx/partial/reorder_rooms
POST Payload: htmx_form_save_rooms_order_field {"rooms":[2,1,3,4,6,8,5,7]}
<h1 style="padding: 0px; margin: 0px; font-weight: normal; color: rgb(0, 0, 0); font-family: sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">TemplateDoesNotExist at /htmx/partial/reorder_rooms</h1><pre class="exception_value" style="padding: 0px; margin: 10px 0px; font-size: 1.5rem; white-space: pre-wrap; word-break: break-word; font-family: sans-serif; color: rgb(87, 87, 87); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">An error occured while rendering component 'RoomsList':
TemplateDoesNotExist("An error occured while rendering component 'nspanel_status_badge':\nTemplateDoesNotExist('nspanel_status_badge/nspanel_status_badge_htmx_partial_reorder_rooms.html')")</pre>
Request Method: | POST
-- | --
http://10.0.0.22:8181/htmx/partial/reorder_rooms
5.1.1
TemplateDoesNotExist
An error occured while rendering component 'RoomsList': TemplateDoesNotExist("An error occured while rendering component 'nspanel_status_badge':\nTemplateDoesNotExist('nspanel_status_badge/nspanel_status_badge_htmx_partial_reorder_rooms.html')")
/usr/local/lib/python3.12/site-packages/django_components/component.py, line 457, in _render
web.htmx.partial_reorder_rooms
/usr/local/bin/uwsgi
3.12.5
['.', '', '/usr/local/lib/python312.zip', '/usr/local/lib/python3.12', '/usr/local/lib/python3.12/lib-dynload', '/usr/local/lib/python3.12/site-packages']
Sat, 15 Nov 2025 11:28:34 +0000
Environment info (please complete the following information):
- NSPanelManager version 2.0-devel
Uploaded fix that should be available in the next beta release, thanks for reporting back.