Skip to content

Commit

Permalink
Change status filter of unpublished_drafts view
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel committed Sep 16, 2024
1 parent c0bc11f commit abc710c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/api_app/views/unpublished_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ class UnpublishedChangesView(GetPermissionsMixin, ListAPIView):
"""

queryset = Change.objects.filter(
status=Change.Statuses.IN_ADMIN_REVIEW, action=Change.Actions.CREATE
status__in=[
Change.Statuses.AWAITING_REVIEW,
Change.Statuses.IN_REVIEW,
Change.Statuses.AWAITING_ADMIN_REVIEW,
Change.Statuses.IN_ADMIN_REVIEW,
],
action=Change.Actions.CREATE,
)
serializer_class = UnpublishedSerializer

Expand Down

0 comments on commit abc710c

Please sign in to comment.