From: Jan Szejko Date: Tue, 25 Apr 2017 12:34:45 +0000 (+0200) Subject: more filters (type, subject) X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/05e91c7df5885633b5ea79275d50a3ac4f221d81 more filters (type, subject) --- diff --git a/apps/catalogue/filters.py b/apps/catalogue/filters.py index e14864ba..56a8cf58 100644 --- a/apps/catalogue/filters.py +++ b/apps/catalogue/filters.py @@ -27,6 +27,8 @@ class DocumentFilterSet(django_filters.FilterSet): language = tag_filter('language') license = tag_filter('rights') audience = tag_filter('audience') + resource_type = tag_filter('type') + subject = tag_filter('subject') class Meta: model = Document diff --git a/apps/organizations/filters.py b/apps/organizations/filters.py index f0556ced..04ebc0ef 100644 --- a/apps/organizations/filters.py +++ b/apps/organizations/filters.py @@ -18,6 +18,8 @@ class OrganizationFilterSet(django_filters.FilterSet): language = tag_filter('language') license = tag_filter('rights') audience = tag_filter('audience') + resource_type = tag_filter('type') + subject = tag_filter('subject') class Meta: model = Organization