選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

14 行
388 B

  1. from flask_sqlalchemy import SQLAlchemy
  2. from flask_marshmallow import Marshmallow
  3. from marshmallow import fields
  4. from Config.DB.Models import Users
  5. ma = Marshmallow()
  6. class UsersSchema(ma.SQLAlchemyAutoSchema):
  7. admin = fields.Nested('self', attribute='Admin', many=False, default=None)
  8. class Meta:
  9. model = Users
  10. exclude = ['password', 'notification_token']