mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-22 13:22:24 -06:00
* Add new INET lookups for net_host_lt/gt/lte/gte comparisons irrespective of subnet inclusion * Refactor Lookup subclasses to be more DRY * Move comparison_sql to class attribute * Add HostAsInet(Transform) to perform cast * Remove unnecessary Lookup comparison classes * Chain Host and Inet instead of making a new transform
This commit is contained in:
@@ -105,6 +105,8 @@ IPAddressField.register_lookup(lookups.NetIn)
|
||||
IPAddressField.register_lookup(lookups.NetHostContained)
|
||||
IPAddressField.register_lookup(lookups.NetFamily)
|
||||
IPAddressField.register_lookup(lookups.NetMaskLength)
|
||||
IPAddressField.register_lookup(lookups.Host)
|
||||
IPAddressField.register_lookup(lookups.Inet)
|
||||
|
||||
|
||||
class ASNField(models.BigIntegerField):
|
||||
|
||||
Reference in New Issue
Block a user