Skip to content

Commit

Permalink
update IPAddressEditView get_extra_addanother_params
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoalmeidaoliveira committed Feb 7, 2025
1 parent 72e93b0 commit bea5373
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions netbox/ipam/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,10 +864,12 @@ def alter_object(self, obj, request, url_args, url_kwargs):
return obj

def get_extra_addanother_params(self, request):
extra_params = super().get_extra_addanother_params(request)
if 'interface' in request.GET:
return {'interface': request.GET['interface']}
extra_params['interface'] = request.GET['interface']
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
Expand Down

0 comments on commit bea5373

Please sign in to comment.