Temporary fix to cable_form tag. No cable functionality has actually been added, that can be done once the frontend is in place to handle it.

This commit is contained in:
Matthew Smith
2019-10-07 10:45:23 +01:00
parent 85db26bdb1
commit 98b9697366

View File

@@ -16,7 +16,7 @@ from assets import models, forms
class CableFormMixin:
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["cable_form"] = forms.CableForm(**self.get_form_kwargs())
context["cable_form"] = forms.CableForm()
return context
class AssetList(LoginRequiredMixin, generic.ListView):