1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Allow for setting mgmt_only=True in "Add management interfaces" link

This commit is contained in:
Jeremy Stretch
2016-07-14 11:39:53 -04:00
parent a5f6e64849
commit 46b1ac23af
3 changed files with 10 additions and 3 deletions

View File

@@ -353,7 +353,7 @@ class ComponentTemplateCreateView(View):
return render(request, 'dcim/component_template_add.html', {
'devicetype': devicetype,
'component_type': self.model._meta.verbose_name,
'form': self.form(),
'form': self.form(initial=request.GET),
'cancel_url': reverse('dcim:devicetype', kwargs={'pk': devicetype.pk}),
})