StudE-Backend/stude/study_groups/views.py

16 lines
452 B
Python
Raw Normal View History

2023-06-27 21:12:03 +08:00
from django.shortcuts import render
from rest_framework import generics
from .serializers import StudyGroupSerializer
from .models import StudyGroup
2023-06-27 21:12:03 +08:00
# Create your views here.
class StudyGroupListView(generics.ListAPIView):
serializer_class = StudyGroupSerializer
queryset = StudyGroup.objects.all()
class StudyGroupMembershipViewSet(generics.ListAPIView):
serializer_class = StudyGroupSerializer
queryset = StudyGroup.objects.all()