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

Fixes #1670: Corrected filter names (regression from #1649)

This commit is contained in:
Jeremy Stretch
2017-10-31 14:47:14 -04:00
parent b9cd834e95
commit 85c273c8ca
5 changed files with 28 additions and 21 deletions

View File

@@ -83,7 +83,7 @@ class CircuitFilter(CustomFieldFilterSet, django_filters.FilterSet):
label='Tenant (ID)',
)
tenant = django_filters.ModelMultipleChoiceFilter(
name='tenant',
name='tenant__slug',
queryset=Tenant.objects.all(),
to_field_name='slug',
label='Tenant (slug)',