Skip to content

Cannot filter sites by latitude="null" or latitude=None #602

Answered by markkuleinio
tux-mania asked this question in Q&A
Discussion options

You must be logged in to vote

https://docs.netbox.dev/en/stable/reference/filtering/#numeric-fields

>>> list(netbox.dcim.sites.filter())
[Site1, Site2]
>>> list(netbox.dcim.sites.filter(latitude__empty=True))
[Site2]
>>> list(netbox.dcim.sites.filter(latitude__empty=False))
[Site1]
>>>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tux-mania
Comment options

Answer selected by tux-mania
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants