diff --git a/backend/holon/viewsets/update_register.py b/backend/holon/viewsets/update_register.py index d24b9438e..e0c5b6e4a 100644 --- a/backend/holon/viewsets/update_register.py +++ b/backend/holon/viewsets/update_register.py @@ -1,10 +1,8 @@ from holon.models import UpdateRegister from holon.serializers import UpdateRegisterSerializer -from rest_framework import viewsets, permissions -from holon.permissions import AllowOnlyPost +from rest_framework import viewsets, mixins # ViewSets define the view behavior. -class UpdateRegisterViewSet(viewsets.ModelViewSet): +class UpdateRegisterViewSet(mixins.CreateModelMixin, viewsets.GenericViewSet): queryset = UpdateRegister.objects.all() serializer_class = UpdateRegisterSerializer - permission_classes = [AllowOnlyPost] \ No newline at end of file