Skip to content

Reordering Rooms give 500 Error #337

Open

Description

@syzygyinteractivemedia

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

Activity

  1. added a commit that references this issue on Nov 22, 2025
  2. tpanajott commented on Nov 22, 2025

    @tpanajott
    Collaborator

    Uploaded fix that should be available in the next beta release, thanks for reporting back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions