15 lines
347 B
Python
15 lines
347 B
Python
from marshmallow import Schema, fields
|
|
|
|
from api.target.serializers import TargetSchema
|
|
|
|
|
|
class Registration(Schema):
|
|
id = fields.Int()
|
|
name = fields.Str()
|
|
Token = fields.Str(dump_only=True)
|
|
exchange = fields.Nested(TargetSchema, required=True)
|
|
|
|
|
|
registration_schema = Registration()
|
|
registrations_schema = Registration(many=True)
|