Skip to content

Commit

Permalink
✨ [#499] Log event when author marks list ready to review
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed Nov 26, 2024
1 parent 550b1a9 commit c89c915
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions backend/src/openarchiefbeheer/destruction/api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ def mark_ready_review(self, request, *args, **kwargs):

destruction_list.assign_next()

logevent.destruction_list_ready_for_first_review(destruction_list, request.user)

return Response(status=status.HTTP_201_CREATED)

@action(detail=True, methods=["post"], name="abort-destruction")
Expand Down
5 changes: 3 additions & 2 deletions backend/src/openarchiefbeheer/zaken/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ def format_selectielijstklasse_choice(resultaat: Resultaat) -> DropDownChoice:
def format_resultaten_choices(resultaten: list[dict]) -> DropDownChoice:
result = [
{
"value": resultaat["url"],
"label": resultaat.get("toelichting", resultaat["uuid"]),
"value": resultaat["_expand"]["resultaattype"]["url"],
"label": resultaat["_expand"]["resultaattype"]["omschrijving"],
"extra_data": {"toelichting": resultaat.get("toelichting")},
}
for resultaat in resultaten
]
Expand Down

0 comments on commit c89c915

Please sign in to comment.