From aac927c9140a7b75f6bce80937e04fad4d37b638 Mon Sep 17 00:00:00 2001 From: Zulfikar Akbar Muzakki Date: Thu, 2 May 2024 09:56:30 +0700 Subject: [PATCH 1/2] update-site-prefs-admin --- django_project/core/admin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/django_project/core/admin.py b/django_project/core/admin.py index d487391..0b9292f 100644 --- a/django_project/core/admin.py +++ b/django_project/core/admin.py @@ -15,6 +15,11 @@ class SitePreferencesAdmin(admin.ModelAdmin): 'api_config', ) }), + ('Output Group to Keep', { + 'fields': ( + 'output_group_to_keep', + ) + }), ) From 65216769858df302068d5fed343085c71aa9a85c Mon Sep 17 00:00:00 2001 From: Zulfikar Akbar Muzakki Date: Thu, 2 May 2024 10:03:22 +0700 Subject: [PATCH 2/2] Add group to UserScenarioAnalysisOutput --- django_project/cplus_api/api_views/output.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django_project/cplus_api/api_views/output.py b/django_project/cplus_api/api_views/output.py index 8544998..5e274ef 100644 --- a/django_project/cplus_api/api_views/output.py +++ b/django_project/cplus_api/api_views/output.py @@ -47,7 +47,8 @@ class UserScenarioAnalysisOutput(BaseScenarioReadAccess, APIView): tags=[SCENARIO_OUTPUT_API_TAG], manual_parameters=[ PARAM_SCENARIO_UUID_IN_PATH, - param_all_outputs + param_all_outputs, + param_group ] + PARAMS_PAGINATION, responses={ 200: PaginatedOutputLayerSerializer,