mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 13:18:35 +00:00
Get category_name from fields
This commit is contained in:
parent
aa9807a543
commit
80322b392f
@ -1,6 +1,6 @@
|
||||
import enum
|
||||
|
||||
from marshmallow import EXCLUDE, post_load
|
||||
from marshmallow import EXCLUDE, post_load, fields
|
||||
from sqlalchemy import func
|
||||
|
||||
from crc import db, ma
|
||||
@ -48,6 +48,7 @@ class WorkflowSpecInfoSchema(ma.Schema):
|
||||
"standalone", "library", "primary_file_name", "primary_process_id", "is_review",
|
||||
"libraries", "category_name", "display_order", "is_master_spec", "is_review"]
|
||||
unknown = EXCLUDE
|
||||
category_name = fields.Str(dump_only=True)
|
||||
|
||||
@post_load
|
||||
def make_spec(self, data, **kwargs):
|
||||
|
Loading…
x
Reference in New Issue
Block a user