Skip to content

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!

@jnovinger jnovinger self-requested a review June 9, 2025 12:38
@jnovinger jnovinger marked this pull request as ready for review June 9, 2025 12:38
@jnovinger jnovinger merged commit dda0a55 into netbox-community:main Jun 9, 2025
3 checks passed
@pheus pheus deleted the 19677-fix-filter-present-in-vrf-none-call branch June 9, 2025 13:01
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 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.

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

2 participants