示例#1
0
def on_process_instance_creation(sender, instance, created, **kwargs):
    if created and instance:
        process_instance_creation.apply_async(args=[instance.id],
                                              queue=EXTERNAL_APPS_QUEUE)
示例#2
0
文件: admin.py 项目: ntwuxc/moocng
 def save_model(self, request, obj, form, change):
     if change and obj.execute_task_on_save:
         process_instance_creation.apply_async(args=[obj.id],
                                               queue=EXTERNAL_APPS_QUEUE)
     super(ExternalAppAdmin, self).save_model(request, obj, form, change)
示例#3
0
def on_process_instance_creation(sender, instance, created, **kwargs):
    if created and instance:
        process_instance_creation.apply_async(
            args=[instance.id],
            queue=EXTERNAL_APPS_QUEUE
        )
示例#4
0
 def save_model(self, request, obj, form, change):
     if change and obj.execute_task_on_save:
         process_instance_creation.apply_async(args=[obj.id], queue=EXTERNAL_APPS_QUEUE)
     super(ExternalAppAdmin, self).save_model(request, obj, form, change)