Skip to content

Commit

Permalink
String Filtering: Support ID matching for links on listing pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch committed Jun 6, 2024
1 parent d9c6da4 commit 3f3fb0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dojo/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,8 @@ def set_date_fields(self, *args: list, **kwargs: dict):


class FindingFilterWithoutObjectLookups(FindingFilterHelper, FindingTagStringFilter):
test__engagement__product__prod_type = NumberFilter(widget=HiddenInput())
test__engagement__product = NumberFilter(widget=HiddenInput())
reporter = CharFilter(
field_name="reporter__username",
lookup_expr="iexact",
Expand Down Expand Up @@ -2471,6 +2473,7 @@ class Meta:


class EndpointFilterWithoutObjectLookups(EndpointFilterHelper):
product = NumberFilter(widget=HiddenInput())
product__name = CharFilter(
field_name="product__name",
lookup_expr="iexact",
Expand Down

0 comments on commit 3f3fb0b

Please sign in to comment.