Skip to content

Commit

Permalink
👌 [#2193] PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Mar 12, 2024
1 parent c13f413 commit 646b1ec
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/open_inwoner/pdc/admin/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,19 @@ def zaaktypen_select_schema() -> dict:

choices = []
for zaaktype in zaaktypen:
title = zaaktype.omschrijving
# eSuite doesn't have the Catalogus resource
if zaaktype.catalogus:
title = f"{zaaktype.catalogus.domein} - {zaaktype.catalogus.rsin}: {title}"

choices.append(
{
"value": zaaktype.identificatie,
"title": f"{zaaktype.catalogus.domein} - {zaaktype.catalogus.rsin}: {zaaktype.omschrijving}",
"title": title,
}
)

choices = sorted(choices, key=lambda item: item["title"])
choices.sort(key=lambda item: item["title"])

schema = {
"type": "array",
Expand Down

0 comments on commit 646b1ec

Please sign in to comment.