registration
This commit is contained in:
14
api/registration/serializers.py
Normal file
14
api/registration/serializers.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user