fix mesh message send
This commit is contained in:
parent
5cf839577a
commit
d85d9845b2
2 changed files with 5 additions and 4 deletions
|
@ -49,6 +49,11 @@ class MeshMessageListView(MeshControlMixin, ListView):
|
|||
})
|
||||
return ctx
|
||||
|
||||
def post(self, request):
|
||||
return redirect(
|
||||
reverse("mesh.send", kwargs={"msg_type": request.POST.get("send_msg_type", "")})
|
||||
)
|
||||
|
||||
|
||||
class MeshMessageSendView(MeshControlMixin, FormView):
|
||||
template_name = "mesh/mesh_message_send.html"
|
||||
|
|
|
@ -18,10 +18,6 @@ class NodeListView(MeshControlMixin, ListView):
|
|||
def get_queryset(self):
|
||||
return super().get_queryset().prefetch_last_messages().prefetch_firmwares()
|
||||
|
||||
def post(self, request):
|
||||
return redirect(
|
||||
reverse("control.mesh.send", kwargs={"msg_type": request.POST.get("send_msg_type", "")})
|
||||
)
|
||||
|
||||
|
||||
class NodeDetailView(MeshControlMixin, DetailView):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue