Skip to content

Commit

Permalink
feat: add iregex lookup to ChapterFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
katharinawuensche committed Dec 4, 2023
1 parent b4dc54c commit 16cc935
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apis_ontology/jelinek_api_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 16cc935

Please sign in to comment.