Skip to content

Conversation

@renatoalmeidaoliveira
Copy link
Contributor

Fixes: #18593 - "Create & Add Another" broken for new IP addresses

  • Changes IPAddressEditView's get_extra_addanother_params to return super().get_extra_addanother_params(request) when the GET params interface or vminterface

Its also possible to solve this issue returning {} if there aren't any match in the if clauses, IMO returning super().get_extra_addanother_params(request) could be more flexible in the future.
Please let me know if you prefer to use another approach.

return obj

def get_extra_addanother_params(self, request):
extra_params = super().get_extra_addanother_params(request)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to call super(); it can just return an empty dictionary.

@jeremystretch jeremystretch merged commit 154b3a7 into netbox-community:main Feb 11, 2025
3 checks passed
bctiemann pushed a commit that referenced this pull request Mar 6, 2025
…8602)

* update IPAddressEditView get_extra_addanother_params

* Simplify get_extra_addanother_params
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Create & Add Another" broken for new IP addresses

2 participants