mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-18 22:12:14 +00:00
Fixed cable form fields not appearing, and made the 'cable details' group appearing more reliable
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user