Merge pull request #1000 from ryanpetrello/fix-7853

fix a minor unicode handling bug in project names
This commit is contained in:
Ryan Petrello
2018-01-17 14:15:15 -05:00
committed by GitHub

View File

@@ -3896,8 +3896,8 @@ class ScheduleSerializer(LaunchConfigurationBaseSerializer):
raise serializers.ValidationError(_('Manual Project cannot have a schedule set.'))
elif type(value) == InventorySource and value.source == 'scm' and value.update_on_project_update:
raise serializers.ValidationError(_(
'Inventory sources with `update_on_project_update` cannot be scheduled. '
'Schedule its source project `{}` instead.'.format(value.source_project.name)))
six.text_type('Inventory sources with `update_on_project_update` cannot be scheduled. '
'Schedule its source project `{}` instead.').format(value.source_project.name)))
return value
# We reject rrules if: