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

Minor updates on Forms and Filters #156

Merged
merged 4 commits into from
Nov 13, 2023

Conversation

pl0xym0r
Copy link
Contributor

Add the possibility to filter BGP session with the site parameter as it's present on the model + serializer
Updating tags use on form as they are already present on class NetBoxModelForm (https://github.com/netbox-community/netbox/blob/develop/netbox/netbox/forms/base.py)
Added the possibility to filter prefix list by their ID

@pl0xym0r
Copy link
Contributor Author

pl0xym0r commented Nov 3, 2023

It's easier to use the filterset from netbox https://github.com/netbox-community/netbox/blob/v3.6.4/netbox/netbox/filtersets.py#L269 and thanks to inheritance the q method is already present. no need to implement it in the query.

@k01ek k01ek changed the base branch from main to develop November 13, 2023 06:12
@k01ek k01ek merged commit cddabc2 into netbox-community:develop Nov 13, 2023
@pl0xym0r pl0xym0r deleted the dev/update_filters_forms branch November 16, 2023 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants