mirror of
https://github.com/ansible/awx.git
synced 2026-04-13 22:19:27 -02:30
Adding help text to until and timezone fields
This commit is contained in:
@@ -4681,8 +4681,16 @@ class SchedulePreviewSerializer(BaseSerializer):
|
|||||||
class ScheduleSerializer(LaunchConfigurationBaseSerializer, SchedulePreviewSerializer):
|
class ScheduleSerializer(LaunchConfigurationBaseSerializer, SchedulePreviewSerializer):
|
||||||
show_capabilities = ['edit', 'delete']
|
show_capabilities = ['edit', 'delete']
|
||||||
|
|
||||||
timezone = serializers.SerializerMethodField()
|
timezone = serializers.SerializerMethodField(
|
||||||
until = 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:
|
class Meta:
|
||||||
model = Schedule
|
model = Schedule
|
||||||
|
|||||||
Reference in New Issue
Block a user