Populates category

This commit is contained in:
Aaron Louie 2020-03-18 15:16:15 -04:00
parent 532d6b5dd6
commit 853b2b2502
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import enum import enum
import marshmallow
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
from crc import db from crc import db
@ -37,6 +38,8 @@ class WorkflowSpecModelSchema(SQLAlchemyAutoSchema):
include_relationships = True include_relationships = True
include_fk = True # Includes foreign keys include_fk = True # Includes foreign keys
workflow_spec_category = marshmallow.fields.Nested(WorkflowSpecCategoryModelSchema, dump_only=True)
class WorkflowStatus(enum.Enum): class WorkflowStatus(enum.Enum):
new = "new" new = "new"