backend/pitch_deck_generator/tickets/api/serializers.py

12 lines
283 B
Python
Raw Permalink Normal View History

2023-08-26 01:17:47 +03:00
from rest_framework import serializers
from pitch_deck_generator.tickets.models import Ticket
class TicketSerializer(serializers.ModelSerializer):
current = serializers.IntegerField()
class Meta:
model = Ticket
fields = ["name", "current", "max", "next"]