prettier names in mesh view

This commit is contained in:
Laura Klünder 2023-10-20 15:04:36 +02:00
parent 6a35c6767b
commit 7f7ea64fd3
6 changed files with 33 additions and 14 deletions

View file

@ -30,7 +30,7 @@ class MeshNodeListView(ControlPanelMixin, ListView):
def get_context_data(self, *args, **kwargs):
return {
**super().get_context_data(*args, **kwargs),
"send_msg_types": [msg_type.name for msg_type in MeshMessageForm.msg_types.keys()],
"send_msg_types": {msg_type for msg_type in MeshMessageForm.msg_types.keys()}
}
def post(self, request):