McDuck/stacking/serializers.py

15 lines
327 B
Python
Raw Permalink Normal View History

2024-08-29 09:21:58 +00:00
from rest_framework import serializers
from .models import UserStake, Stake
class UserStakeSerializer(serializers.ModelSerializer):
class Meta:
model = UserStake
fields = '__all__'
class StakeSerializer(serializers.ModelSerializer):
class Meta:
model = Stake
fields = '__all__'