Files
mayan-edms/mayan/apps/document_states/handlers.py
2016-06-10 19:59:09 -04:00

11 lines
267 B
Python

from __future__ import unicode_literals
from django.db.models import get_model
def launch_workflow(sender, instance, created, **kwargs):
Workflow = get_model('document_states', 'Workflow')
if created:
Workflow.on_organization.launch_for(instance)