mirror of
https://github.com/spbleadersofdigtal/backend.git
synced 2024-12-02 23:33:44 +03:00
12 lines
283 B
Python
12 lines
283 B
Python
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"]
|