Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #10094 - Contact Assignments Create and Add Another #10103

Merged
merged 5 commits into from
Aug 24, 2022

Conversation

arthanson
Copy link
Collaborator

Fixes: #10094

Fixes for Contact Assignment create and Add Another (previously returning a 404 error:

Steps to Reproduce
Click 'Add a Contact' on a Device or Virtual Machine (possibly others) detail page.
Enter Contact and Role.
Click 'Create & Add Another'

adds a get_extra_addanother_params() to ObjectEditView that can be overridden to set extra query params for the button.

Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

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

I like the approach of adding a get_extra_addanother_params() method to the view, but we want to keep it as simple as possible because it will need to be added to the plugins API for the view.

netbox/netbox/views/generic/object_views.py Outdated Show resolved Hide resolved
netbox/netbox/views/generic/object_views.py Outdated Show resolved Hide resolved
netbox/tenancy/views.py Outdated Show resolved Hide resolved
@jeremystretch jeremystretch merged commit 3110765 into netbox-community:develop Aug 24, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2022
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.

Contact Assignments Create and Add Another
2 participants