mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 03:16:25 -06:00
update IPAddressEditView get_extra_addanother_params
This commit is contained in:
parent
72e93b04da
commit
bea5373b78
@ -864,10 +864,12 @@ class IPAddressEditView(generic.ObjectEditView):
|
|||||||
return obj
|
return obj
|
||||||
|
|
||||||
def get_extra_addanother_params(self, request):
|
def get_extra_addanother_params(self, request):
|
||||||
|
extra_params = super().get_extra_addanother_params(request)
|
||||||
if 'interface' in request.GET:
|
if 'interface' in request.GET:
|
||||||
return {'interface': request.GET['interface']}
|
extra_params['interface'] = request.GET['interface']
|
||||||
elif 'vminterface' in request.GET:
|
elif 'vminterface' in request.GET:
|
||||||
return {'vminterface': request.GET['vminterface']}
|
extra_params['vminterface'] = request.GET['vminterface']
|
||||||
|
return extra_params
|
||||||
|
|
||||||
|
|
||||||
# TODO: Standardize or remove this view
|
# TODO: Standardize or remove this view
|
||||||
|
Loading…
Reference in New Issue
Block a user