From 16cc9359175bbb41d9993bb81099c98450eeb49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katharina=20W=C3=BCnsche?= Date: Mon, 4 Dec 2023 20:28:39 +0100 Subject: [PATCH] feat: add iregex lookup to ChapterFilter --- apis_ontology/jelinek_api_filters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apis_ontology/jelinek_api_filters.py b/apis_ontology/jelinek_api_filters.py index 15195c8..062a71a 100644 --- a/apis_ontology/jelinek_api_filters.py +++ b/apis_ontology/jelinek_api_filters.py @@ -40,7 +40,8 @@ class ChapterFilter(django_filters.FilterSet): class Meta: model = Chapter fields = {'id': ['exact', 'in'], - 'chapter_number': ['exact', 'in'] + 'chapter_number': ['exact', 'in', 'iregex'], + 'name': ['exact', 'in', 'iregex'] } def filter_entity(expr_to_entity, class_to_check=None, role=None, lookup_expr="in", property_to_check="name", check_dump=False):