Skip to content

Commit

Permalink
OM-91 Added deleted insuree filter
Browse files Browse the repository at this point in the history
  • Loading branch information
malinowskikam committed Dec 4, 2023
1 parent 0f7cf01 commit af8050a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worker_voucher/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def resolve_previous_workers(self, info, economic_unit_code=None, **kwargs):
filters = append_validity_filter(**kwargs)

query = Insuree.get_queryset(None, info.context.user).filter(
validity_to__isnull=True,
workervoucher__is_deleted=False,
workervoucher__policyholder__is_deleted=False,
workervoucher__policyholder__code=economic_unit_code
Expand Down

0 comments on commit af8050a

Please sign in to comment.