mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Add get_extra_addanother_params method in IPAddressEditView
This commit is contained in:
parent
4c5fbb7326
commit
e12a5d2edc
@ -863,6 +863,12 @@ class IPAddressEditView(generic.ObjectEditView):
|
|||||||
|
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
|
def get_extra_addanother_params(self, request):
|
||||||
|
if 'interface' in request.GET:
|
||||||
|
return {'interface': request.GET['interface']}
|
||||||
|
elif 'vminterface' in request.GET:
|
||||||
|
return {'vminterface': request.GET['vminterface']}
|
||||||
|
|
||||||
|
|
||||||
# TODO: Standardize or remove this view
|
# TODO: Standardize or remove this view
|
||||||
@register_model_view(IPAddress, 'assign', path='assign', detail=False)
|
@register_model_view(IPAddress, 'assign', path='assign', detail=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user