modify the wrong list name of schedule_unit to interval_uint

Closes-Bug: #1744625

Change-Id: I8bd3019405132251774434c82845fdb356e94435
This commit is contained in:
yang zhenming 2018-01-21 21:30:51 -08:00
parent 6b78e6ddba
commit 569d1dba07
1 changed files with 3 additions and 3 deletions

View File

@ -161,13 +161,13 @@ class InfoConfigurationAction(workflows.Action):
if (cleaned_data.get('schedule_start_date') and
cleaned_data.get('schedule_end_date')) and\
not cleaned_data.get('schedule_unit'):
not cleaned_data.get('interval_uint'):
msg = _("Please provide this value.")
self._errors['schedule_unit'] = self.error_class([msg])
self._errors['interval_uint'] = self.error_class([msg])
if (cleaned_data.get('schedule_end_date') and
not cleaned_data.get('schedule_start_date')) and\
not cleaned_data.get('schedule_unit'):
not cleaned_data.get('interval_uint'):
msg = _("Please provide this value.")
self._errors['schedule_start_date'] = self.error_class([msg])