backend/passfinder/recomendations/api/serializers.py

7 lines
274 B
Python
Raw Normal View History

2023-05-21 13:37:21 +03:00
from rest_framework import serializers
from passfinder.events.api.serializers import EventSerializer
class TinderProceedSerializer(serializers.Serializer):
action = serializers.ChoiceField(['left', 'right'], write_only=True)
event = EventSerializer(read_only=True)