Fixes #1705: Fixed filtering of devices with a status of offline

This commit is contained in:
Jeremy Stretch
2017-11-14 12:58:47 -05:00
parent 9a7dd5ea19
commit 8d6d55d628
3 changed files with 10 additions and 5 deletions

View File

@@ -425,7 +425,8 @@ class DeviceFilter(CustomFieldFilterSet, django_filters.FilterSet):
label='Device model (slug)',
)
status = django_filters.MultipleChoiceFilter(
choices=STATUS_CHOICES
choices=STATUS_CHOICES,
null_value=None
)
is_full_depth = django_filters.BooleanFilter(
name='device_type__is_full_depth',