1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Copy name format update to be consistant with UI.

This commit is contained in:
Aaron Tan 2016-12-01 15:27:35 -05:00
parent 6a5abd53e9
commit 987a53a2a5

View File

@ -341,7 +341,7 @@ class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique, Notificatio
unified_jt = copy_model_by_class(self, unified_jt_class, fields, {})
time_now = datetime.now()
unified_jt.name = unified_jt.name + ' @ ' + time_now.strftime('%H:%M:%S %p')
unified_jt.name = unified_jt.name.split('@', 1)[0] + ' @ ' + time_now.strftime('%H:%M:%S %p')
unified_jt.save()
copy_m2m_relationships(self, unified_jt, fields)