Skip to content

Commit

Permalink
Sort official questions in create study interface
Browse files Browse the repository at this point in the history
  • Loading branch information
danlamanna committed Nov 25, 2024
1 parent 9770d19 commit b6cbec0
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 b6cbec0

Please sign in to comment.