Added RackGroup slug filter

This commit is contained in:
Jeremy Stretch 2016-06-27 12:30:25 -04:00
parent e78263637a
commit 1cd20861f2

View File

@ -47,6 +47,12 @@ class RackFilter(django_filters.FilterSet):
queryset=RackGroup.objects.all(),
label='Group (ID)',
)
group = django_filters.ModelMultipleChoiceFilter(
name='group',
queryset=RackGroup.objects.all(),
to_field_name='slug',
label='Group',
)
class Meta:
model = Rack