Files
mayan-edms/mayan/apps/document_states/managers.py
2015-01-19 04:06:40 -04:00

8 lines
212 B
Python

from django.db import models
class WorkflowManager(models.Manager):
def launch_for(self, document):
for workflow in document.document_type.workflows.all():
workflow.launch_for(document)