McDuck/tapdata/serializers.py

15 lines
327 B
Python
Raw Normal View History

2024-08-29 09:21:58 +00:00
from rest_framework import serializers
from .models import Farming, Prizes
class FarmingSerializer(serializers.ModelSerializer):
class Meta:
model = Farming
fields = '__all__'
class PrizesSerializer(serializers.ModelSerializer):
class Meta:
model = Prizes
fields = '__all__'