Populates category
This commit is contained in:
parent
532d6b5dd6
commit
853b2b2502
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue