mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Merge pull request #4205 from jangsutsr/4099_copy_behavior_consistancy_update
Copy name format update to be consistent with UI
This commit is contained in:
commit
386a7d71a0
@ -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('%I:%M:%S %p')
|
||||
|
||||
unified_jt.save()
|
||||
copy_m2m_relationships(self, unified_jt, fields)
|
||||
|
Loading…
Reference in New Issue
Block a user