mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-30 04:16:24 -06:00
Fix some PEP8 issues
This commit is contained in:
parent
433f9119d2
commit
664a2e1e7f
@ -490,6 +490,7 @@ class HistoryLogFilter(DeviceComponentFilterSet):
|
||||
model = HistoryLog
|
||||
fields = ['role']
|
||||
|
||||
|
||||
class ConsoleConnectionFilter(django_filters.FilterSet):
|
||||
site = django_filters.CharFilter(
|
||||
method='filter_site',
|
||||
|
@ -505,6 +505,7 @@ class InterfaceConnectionTable(BaseTable):
|
||||
model = Interface
|
||||
fields = ('device_a', 'interface_a', 'device_b', 'interface_b')
|
||||
|
||||
|
||||
#
|
||||
# HistoryLog roles
|
||||
#
|
||||
|
@ -51,6 +51,7 @@ def startswith(value, arg):
|
||||
"""
|
||||
return str(value).startswith(arg)
|
||||
|
||||
|
||||
@register.filter()
|
||||
def bettertitle(value):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user