McDuck/stacking/views.py

15 lines
386 B
Python
Raw Normal View History

2024-08-29 09:21:58 +00:00
from rest_framework import viewsets
from .models import UserStake, Stake
from .serializers import UserStakeSerializer, StakeSerializer
class UserStakeViewSet(viewsets.ModelViewSet):
queryset = UserStake.objects.all()
serializer_class = UserStakeSerializer
class StakeViewSet(viewsets.ModelViewSet):
queryset = Stake.objects.all()
serializer_class = StakeSerializer