If that API is accessed via AJAX, then your JS code needs translate status
302 and Location header to JS code that sets "location.href"
Regards,
Aldian Fazrihady
http://aldianfazrihady.com
On Sat, 24 Aug 2019, 17:49 göktürk sığırtmaç, wrote:
> Hello, my UserCreate class is create user via Crea
Hello, my UserCreate class is create user via CreateAPIView. I want to
check. if user is auth, auth user directly to 'profile' URI.
class UserCreate(generics.CreateAPIView):
serializer_class = UserCreateSerializer
permission_classes = (~IsAuthenticated,)
queryset = User.objects.all(
2 matches
Mail list logo