add missing MeshControlMixin

This commit is contained in:
Laura Klünder 2024-08-18 15:36:52 +02:00
parent 2696794421
commit 41aab65723

View file

@ -37,7 +37,7 @@ class FirmwaresCurrentListView(MeshControlMixin, TemplateView):
} }
class OTACreateMixin(SuccessMessageMixin, FormMixin): class OTACreateMixin(SuccessMessageMixin, MeshControlMixin, FormMixin):
form_class = OTACreateForm form_class = OTACreateForm
success_message = 'OTA have been created' success_message = 'OTA have been created'
@ -89,7 +89,7 @@ class FirmwareBuildDetailView(OTACreateMixin, MeshControlMixin, DetailView):
} }
class OTAListView(ListView): class OTAListView(MeshControlMixin, ListView):
model = OTAUpdate model = OTAUpdate
template_name = "mesh/ota_list.html" template_name = "mesh/ota_list.html"
ordering = "-created" ordering = "-created"