From fe6d0ce9ccb8ba39ff60e90851e271e7a64b61c7 Mon Sep 17 00:00:00 2001 From: John Westcott IV Date: Tue, 7 Jun 2022 10:50:21 -0400 Subject: [PATCH] Adding help text to until and timezone fields --- awx/api/serializers.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 8842f7b98d..b5085fe67b 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -4681,8 +4681,16 @@ class SchedulePreviewSerializer(BaseSerializer): class ScheduleSerializer(LaunchConfigurationBaseSerializer, SchedulePreviewSerializer): show_capabilities = ['edit', 'delete'] - timezone = serializers.SerializerMethodField() - until = serializers.SerializerMethodField() + timezone = serializers.SerializerMethodField( + help_text=_( + 'The timezone this schedule runs in. This field is extracted from the RRULE. If the timezone in the RRULE is a link to another timezone this field will show the links name.' + ), + read_only=True, + ) + until = serializers.SerializerMethodField( + help_text=_('The date this schedule will end. This field is computed from the RRULE. If the schedule does not end an emptry string will be returned'), + read_only=True, + ) class Meta: model = Schedule