add missing MeshControlMixin
This commit is contained in:
parent
2696794421
commit
41aab65723
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue