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:
committed by
Jeremy Stretch
parent
eed1b8f412
commit
18ea7d1e13
@ -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)
|
||||
|
Reference in New Issue
Block a user