Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# Role Schemas 

2from marshmallow import fields 

3from src import ma 

4from src.model import RoleModel 

5from src.utils import SQLAlchemyAutoSchema 

6 

7 

8class RoleMeta: 

9 model = RoleModel 

10 

11 

12class RoleBase(SQLAlchemyAutoSchema): 

13 class Meta(RoleModel): 

14 pass 

15 

16 

17class RoleObject(RoleBase): 

18 permission = ma.Nested("PermissionBase", many=True)