diff --git a/apps/core/filters/article.py b/apps/core/filters/article.py index b5c46456..9364617e 100644 --- a/apps/core/filters/article.py +++ b/apps/core/filters/article.py @@ -5,6 +5,8 @@ class ArticleFilter(FilterSet): + board = CharFilter(field_name="parent_board__slug", lookup_expr="exact") + class Meta: model = Article fields = { @@ -45,7 +47,10 @@ class Meta: "in", "exact", ], - "communication_article__school_response_status": ["exact", "lt"], + "communication_article__school_response_status": [ + "exact", + "lt", + ], } main_search__contains = CharFilter(