Skip to content

Commit

Permalink
tasklog_status filter added (#268)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashutosh619-sudo <[email protected]>
  • Loading branch information
Ashutosh619-sudo and Ashutosh619-sudo authored Oct 30, 2023
1 parent fcf91ad commit 8f3dad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/fyle/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class ExpenseGroupView(LookupFieldMixin, generics.ListCreateAPIView):
"""

serializer_class = ExpenseGroupSerializer
queryset = ExpenseGroup.objects.filter(tasklog__status="COMPLETE").order_by(
queryset = ExpenseGroup.objects.filter().order_by(
"-updated_at"
)
serializer_class = ExpenseGroupSerializer
filterset_fields = {"exported_at": {"gte", "lte"}}
filterset_fields = {"exported_at": {"gte", "lte"}, "tasklog__status": {"exact"}}


class ExpenseGroupSettingsView(generics.RetrieveAPIView):
Expand Down

0 comments on commit 8f3dad0

Please sign in to comment.