From 80ce0c25417e965daaf9d294d395041302f73b90 Mon Sep 17 00:00:00 2001 From: James Meakin <12661555+jmsmkn@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:24:41 +0200 Subject: [PATCH] Stop unnecessary updates of API schema See https://github.com/DIAGNijmegen/rse-gcapi/issues/155 --- app/grandchallenge/api/urls.py | 1 + app/grandchallenge/timezones/serializers.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/grandchallenge/api/urls.py b/app/grandchallenge/api/urls.py index a2a42b029d..b5d961c7cc 100644 --- a/app/grandchallenge/api/urls.py +++ b/app/grandchallenge/api/urls.py @@ -70,6 +70,7 @@ ComponentInterfaceViewSet, basename="components-interface", ) + # Evaluations router.register(r"evaluations", EvaluationViewSet, basename="evaluation") diff --git a/app/grandchallenge/timezones/serializers.py b/app/grandchallenge/timezones/serializers.py index 38ffd2d921..02e12c9f50 100644 --- a/app/grandchallenge/timezones/serializers.py +++ b/app/grandchallenge/timezones/serializers.py @@ -6,5 +6,5 @@ class TimezoneSerializer(Serializer): timezone = ChoiceField( - choices=zoneinfo.available_timezones(), required=True + choices=sorted(zoneinfo.available_timezones()), required=True )