# encoding: utf-8

# created by @cloverstd
# created at 2016-05-11 16:31

from ._base import ma, BaseModelSchema
from ..models import User, UserName


class UserNameSchema(BaseModelSchema):
    class Meta:
        model = UserName


class UserSchema(BaseModelSchema):
    class Meta:
        model = User

    names = ma.Nested(UserNameSchema, many=True, exclude=("user",))

5cc92bafef33b4dc32b749937b2f6e54c221acd5
<mask token>


class UserSchema(BaseModelSchema):


    class Meta:
        model = User
    <mask token>

<mask token>


class UserSchema(BaseModelSchema):


    class Meta:
        model = User
    names = ma.Nested(UserNameSchema, many=True, exclude=('user',))

<mask token>


class UserNameSchema(BaseModelSchema):


    class Meta:
        model = UserName


class UserSchema(BaseModelSchema):


    class Meta:
        model = User
    names = ma.Nested(UserNameSchema, many=True, exclude=('user',))

from ._base import ma, BaseModelSchema
from ..models import User, UserName


class UserNameSchema(BaseModelSchema):


    class Meta:
        model = UserName


class UserSchema(BaseModelSchema):


    class Meta:
        model = User
    names = ma.Nested(UserNameSchema, many=True, exclude=('user',))

# encoding: utf-8

# created by @cloverstd
# created at 2016-05-11 16:31

from ._base import ma, BaseModelSchema
from ..models import User, UserName


class UserNameSchema(BaseModelSchema):
    class Meta:
        model = UserName


class UserSchema(BaseModelSchema):
    class Meta:
        model = User

    names = ma.Nested(UserNameSchema, many=True, exclude=("user",))
