These are chat archives for django/django

Dec 2017
Marios Panagopoulos
Dec 17 2017 00:15
how can i access parameter passed in url inside this function def get_serializer_class(self):
Marios Panagopoulos
Dec 17 2017 00:25
    def get_serializer_class(self):
        if == self.kwargs['pk']:
            return UserOwnerSerializer
        return UserSerializer
this returns false for some reason
oh it needs str( nvm :P
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 %}