Rename document states apps view and URLs.

Object layout: WorkflowTemplate, WorkflowInstance, WorkflowRuntimeProxy,
WorkflowTemplateState, WorkflowTemplateTransition.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-07-07 02:21:58 -04:00
parent f36f99c5fb
commit 8811c8269f
18 changed files with 1377 additions and 1279 deletions
+3 -3
View File
@@ -31,7 +31,7 @@ from .storages import storage_workflowimagecache
from .tasks import task_generate_workflow_image
class APIDocumentTypeWorkflowListView(generics.ListAPIView):
class APIDocumentTypeWorkflowRuntimeProxyListView(generics.ListAPIView):
"""
get: Returns a list of all the document type workflows.
"""
@@ -214,7 +214,7 @@ class APIWorkflowImageView(generics.RetrieveAPIView):
return response
class APIWorkflowListView(generics.ListCreateAPIView):
class APIWorkflowRuntimeProxyListView(generics.ListCreateAPIView):
"""
get: Returns a list of all the workflows.
post: Create a new workflow.
@@ -229,7 +229,7 @@ class APIWorkflowListView(generics.ListCreateAPIView):
if not self.request:
return None
return super(APIWorkflowListView, self).get_serializer(*args, **kwargs)
return super(APIWorkflowRuntimeProxyListView, self).get_serializer(*args, **kwargs)
def get_serializer_class(self):
if self.request.method == 'GET':