Example #1
0
class BrochureViewSet(viewsets.ModelViewSet):
    queryset = Brochure.objects.all()
    serializer_class = get_dynamic_serializer(Brochure)
    permission_classes = [permissions.IsAuthenticatedOrReadOnly]
Example #2
0
class RegistrationViewSet(viewsets.ModelViewSet):
    queryset = Registration.objects.all()
    serializer_class = get_dynamic_serializer(Registration)
    permission_classes = [permissions.IsAuthenticated]
Example #3
0
class NewSponsorViewSet(viewsets.ModelViewSet):
    queryset = NewSponsor.objects.all()
    serializer_class = get_dynamic_serializer(NewSponsor)
    permission_classes = [permissions.IsAuthenticatedOrReadOnly]
Example #4
0
class ClubViewSet(viewsets.ModelViewSet):
    queryset = Club.objects.all()
    serializer_class = get_dynamic_serializer(Club)
    permission_classes = [permissions.IsAuthenticatedOrReadOnly]