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