1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

pep8 fixes

This commit is contained in:
kkthxbye-code
2023-02-07 13:24:57 +01:00
committed by Jeremy Stretch
parent eed1b8f412
commit 18ea7d1e13
3 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,7 @@
from django.db.models import CharField, TextField, Lookup
from .fields import CachedValueField
class Empty(Lookup):
"""
Filter on whether a string is empty.
@ -26,5 +27,6 @@ class NetContainsOrEquals(Lookup):
params = lhs_params + rhs_params
return 'CAST(%s as inet) >>= %s' % (lhs, rhs), params
CharField.register_lookup(Empty)
CachedValueField.register_lookup(NetContainsOrEquals)