Commit 2bfa1d25 by Kálmán Viktor

network: add owner to vlan form

parent a86d7f52
......@@ -262,6 +262,7 @@ class VlanForm(ModelForm):
'Info',
'description',
'comment',
'owner',
# 'created_at',
# 'modified_at',
),
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment