Fixed cable form fields not appearing, and made the 'cable details' group appearing more reliable

This commit is contained in:
Matthew Smith
2019-10-05 23:19:22 +01:00
parent a22956cc62
commit d944f99e1f
2 changed files with 23 additions and 25 deletions

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["cableForm"] = forms.CableForm
context["cable_form"] = forms.CableForm(**self.get_form_kwargs())
return context
class AssetList(LoginRequiredMixin, generic.ListView):