Explict Allow Any for register view

This commit is contained in:
ron8mcr 2015-11-24 21:07:20 +07:00
parent 10ae7acac9
commit 30fd6414ce

View File

@ -19,6 +19,7 @@ from rest_auth.views import LoginView
class RegisterView(CreateAPIView): class RegisterView(CreateAPIView):
serializer_class = RegisterSerializer serializer_class = RegisterSerializer
permission_classes = (AllowAny, )
def create(self, request, *args, **kwargs): def create(self, request, *args, **kwargs):
serializer = self.get_serializer(data=request.data) serializer = self.get_serializer(data=request.data)