update IPAddressEditView get_extra_addanother_params

This commit is contained in:
Renato Almeida de Oliveira Zaroubin 2025-02-07 18:59:53 +00:00
parent 72e93b04da
commit bea5373b78

View File

@ -864,10 +864,12 @@ class IPAddressEditView(generic.ObjectEditView):
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