Skip to content

Commit

Permalink
fixes filter endpoints by product tags
Browse files Browse the repository at this point in the history
  • Loading branch information
inesmartins-swordhealth committed Mar 8, 2024
1 parent 7f22cbc commit 44c0af3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1878,8 +1878,8 @@ class EndpointFilter(DojoFilter):
# label='tags', # doesn't work with tagulous, need to set in __init__ below
)

test__engagement__product__tags = ModelMultipleChoiceFilter(
field_name='test__engagement__product__tags__name',
product__tags = ModelMultipleChoiceFilter(
field_name='product__tags__name',
to_field_name='name',
queryset=Product.tags.tag_model.objects.all().order_by('name'),
# label='tags', # doesn't work with tagulous, need to set in __init__ below
Expand Down

0 comments on commit 44c0af3

Please sign in to comment.