These are chat archives for django/django

17th
Dec 2017
Marios Panagopoulos
@MariosPanag
Dec 17 2017 00:15
how can i access parameter passed in url inside this function def get_serializer_class(self):
Marios Panagopoulos
@MariosPanag
Dec 17 2017 00:25
    def get_serializer_class(self):
        if self.request.user.id == self.kwargs['pk']:
            return UserOwnerSerializer
        return UserSerializer
this returns false for some reason
oh it needs str(self.request.user.id) nvm :P
djangoReactGuy
@SanskarSans
Dec 17 2017 10:17
I want to use django allauth form in some other template. I did the following way and it showed me the login form which is what i want but i want to indicate redirect/next url either. How can i do that so?
{% include 'account/snippets/login_form.html' with form=login_form %}