Skip to content

Commit adf6df5

Browse files
authored
Merge pull request #19 from andreynovikov/simplelistfilter
Add SimpleListFilter support, fixes #17
2 parents bbad74e + 7f8358e commit adf6df5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

django_admin_listfilter_dropdown/filters.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
from django.contrib.admin.filters import (
2+
SimpleListFilter,
23
AllValuesFieldListFilter,
34
ChoicesFieldListFilter,
4-
RelatedFieldListFilter, RelatedOnlyFieldListFilter
5+
RelatedFieldListFilter,
6+
RelatedOnlyFieldListFilter
57
)
68

79

10+
class SimpleDropdownFilter(SimpleListFilter):
11+
template = 'django_admin_listfilter_dropdown/dropdown_filter.html'
12+
13+
814
class DropdownFilter(AllValuesFieldListFilter):
915
template = 'django_admin_listfilter_dropdown/dropdown_filter.html'
1016

0 commit comments

Comments
 (0)