File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
04-items-stores-smorest-sqlalchemy Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class PlainStoreSchema(Schema):
1414
1515class ItemSchema (PlainItemSchema ):
1616 store_id = fields .Int (required = True , load_only = True )
17- store = fields .Nested (lambda : PlainStoreSchema (), dump_only = True )
17+ store = fields .Nested (PlainStoreSchema (), dump_only = True )
1818
1919
2020class ItemUpdateSchema (Schema ):
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ class PlainTagSchema(Schema):
1919
2020class ItemSchema (PlainItemSchema ):
2121 store_id = fields .Int (required = True , load_only = True )
22- store = fields .Nested (lambda : PlainStoreSchema (), dump_only = True )
23- tags = fields .List (fields .Nested (lambda : PlainTagSchema ()), dump_only = True )
22+ store = fields .Nested (PlainStoreSchema (), dump_only = True )
23+ tags = fields .List (fields .Nested (PlainTagSchema ()), dump_only = True )
2424
2525
2626class ItemUpdateSchema (Schema ):
@@ -30,7 +30,7 @@ class ItemUpdateSchema(Schema):
3030
3131class StoreSchema (PlainStoreSchema ):
3232 items = fields .List (fields .Nested (PlainItemSchema ()), dump_only = True )
33- tags = fields .List (fields .Nested (lambda : PlainTagSchema ()), dump_only = True )
33+ tags = fields .List (fields .Nested (PlainTagSchema ()), dump_only = True )
3434
3535
3636class TagSchema (PlainTagSchema ):
You can’t perform that action at this time.
0 commit comments