mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 09:48:51 -03:30
Add Schedule to the system job migration
This commit is contained in:
@@ -14,6 +14,7 @@ def create_system_job_templates(apps, schema_editor):
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
SystemJobTemplate = apps.get_model('main', 'SystemJobTemplate')
|
SystemJobTemplate = apps.get_model('main', 'SystemJobTemplate')
|
||||||
|
Schedule = apps.get_model('main', 'Schedule')
|
||||||
ContentType = apps.get_model('contenttypes', 'ContentType')
|
ContentType = apps.get_model('contenttypes', 'ContentType')
|
||||||
sjt_ct = ContentType.objects.get_for_model(SystemJobTemplate)
|
sjt_ct = ContentType.objects.get_for_model(SystemJobTemplate)
|
||||||
now_dt = now()
|
now_dt = now()
|
||||||
|
|||||||
Reference in New Issue
Block a user