Skip to content

Fixes #19677 - Call none() when VRF is None in IPAddress and Prefix filter_present_in_vrffilters #19678

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pheus
Copy link
Contributor

@pheus pheus commented Jun 6, 2025

Fixes: #19677 - IPAM FilterSet: filter_present_in_vrf method returns queryset.none instead of calling it when VRF is None

Ensures the queryset.none() method is called properly with parentheses. This fixes a potential issue where the method would not execute as intended, improving the stability and correctness of the filter logic.

Ensures the `queryset.none()` method is called properly with
parentheses. This fixes a potential issue where the method would not
execute as intended, improving the stability and correctness of the
filter logic.
@pheus pheus changed the title Fix #19677 - Call none() when VRF is None in IPAddress and Prefix filter_present_in_vrffilters Fixes #19677 - Call none() when VRF is None in IPAddress and Prefix filter_present_in_vrffilters Jun 6, 2025
@pheus
Copy link
Contributor Author

pheus commented Jun 6, 2025

I'm sorry for opening this PR before the issue was triaged — I understand that may be a bit premature. This is more of a small drive-by fix that I wanted to wrap up while I had a moment, as I may be quite busy in the coming days.

I hope that's okay, and I really appreciate your understanding.
Thank you for the fantastic work on this project - it's deeply appreciated!

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.

IPAM FilterSet: filter_present_in_vrf method returns queryset.none instead of calling it when VRF is None
1 participant