Skip to content

Commit

Permalink
Merge pull request #1028 from ImageMarkup/sort-official-study-questions
Browse files Browse the repository at this point in the history
Sort official questions in create study interface
  • Loading branch information
danlamanna authored Nov 25, 2024
2 parents 9770d19 + b6cbec0 commit 7243592
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions isic/studies/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def study_create_view(request):
Question.objects.filter(official=True)
.annotate(choice_array=ArrayAgg("choices__text"))
.values("id", "prompt", "choice_array")
.order_by("prompt")
)

return render(
Expand Down

0 comments on commit 7243592

Please sign in to comment.