diff --git a/circle/network/forms.py b/circle/network/forms.py index 2b56de1..c373b26 100644 --- a/circle/network/forms.py +++ b/circle/network/forms.py @@ -262,6 +262,7 @@ class VlanForm(ModelForm): 'Info', 'description', 'comment', + 'owner', # 'created_at', # 'modified_at', ), diff --git a/circle/network/views.py b/circle/network/views.py index 070e466..f964b75 100644 --- a/circle/network/views.py +++ b/circle/network/views.py @@ -657,7 +657,7 @@ class VlanDetail(LoginRequiredMixin, SuperuserRequiredMixin, class VlanCreate(LoginRequiredMixin, SuperuserRequiredMixin, - SuccessMessageMixin, CreateView): + SuccessMessageMixin, InitialOwnerMixin, CreateView): model = Vlan template_name = "network/vlan-create.html" form_class = VlanForm