Skip to content

Commit

Permalink
empty filters
Browse files Browse the repository at this point in the history
  • Loading branch information
zavarin-michael committed Jul 18, 2024
1 parent d6500c0 commit fcf32c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion open_schools_platform/parent_management/families/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def get_all_student_invites_for_current_user_families(user: User):
"body_ct": ContentType.objects.get(model="student"),
"additional_ct": ContentType.objects.get(model="studentprofile"),
"recipient_ids": form_ids_string_from_queryset(user.parent_profile.families.all())
}
},
empty_filters=True
)


Expand Down
3 changes: 2 additions & 1 deletion open_schools_platform/parent_management/parents/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ class FamilyOrganizationTicketCommentsListApi(ApiAuthMixin, ListAPIView):
def get(self, request, organization_id):
tickets = get_tickets(
filters={'recipient_id': organization_id,
'sender_ids': form_ids_string_from_queryset(request.user.parent_profile.families.all())}
'sender_ids': form_ids_string_from_queryset(request.user.parent_profile.families.all())},
empty_filters=True
)

ticket_comments = get_comments(
Expand Down

0 comments on commit fcf32c4

Please sign in to comment.