11from marshmallow .fields import List
22from marshmallow_sqlalchemy .fields import Nested
33
4+ from .base import BaseSQLAlchemySchema
45from .fields import UserByUsername
56from .user import UserSchema
67from ..marshmallow import marshmallow
78from ..models import OneOnOne , OneOnOneActionItem
89
910
10- class OneOnOneActionItemSchema (marshmallow . SQLAlchemySchema ):
11+ class OneOnOneActionItemSchema (BaseSQLAlchemySchema ):
1112 class Meta :
1213 model = OneOnOneActionItem
1314
@@ -18,7 +19,7 @@ class Meta:
1819 created_by = Nested (UserSchema )
1920
2021
21- class CreateOrEditOneOnOneActionItemSchema (marshmallow . SQLAlchemySchema ):
22+ class CreateOrEditOneOnOneActionItemSchema (BaseSQLAlchemySchema ):
2223 class Meta :
2324 model = OneOnOneActionItem
2425 load_instance = True
@@ -27,7 +28,7 @@ class Meta:
2728 content = marshmallow .auto_field ()
2829
2930
30- class OneOnOneSchema (marshmallow . SQLAlchemySchema ):
31+ class OneOnOneSchema (BaseSQLAlchemySchema ):
3132 class Meta :
3233 model = OneOnOne
3334
@@ -41,7 +42,7 @@ class GetOneOnOneSchema(OneOnOneSchema):
4142 action_items = List (Nested (OneOnOneActionItemSchema ))
4243
4344
44- class CreateOneOnOneSchema (marshmallow . SQLAlchemySchema ):
45+ class CreateOneOnOneSchema (BaseSQLAlchemySchema ):
4546 class Meta :
4647 model = OneOnOne
4748 load_instance = True
0 commit comments