mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Fix test error
This commit is contained in:
parent
434cf37988
commit
e7649f0cc2
@ -134,7 +134,7 @@ def render_table_filter_field(fieldname, table, request):
|
||||
field = None
|
||||
|
||||
# Does this table have a filterset form?
|
||||
if table.filterset_form is not None:
|
||||
if hasattr(table, 'filterset_form') and table.filterset_form is not None:
|
||||
# Get the filterset field
|
||||
field = get_filter_field(table.filterset_form, fieldname)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user