mirror of
https://github.com/spbleadersofdigtal/backend.git
synced 2024-11-25 04:23:43 +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"]
|