I use the @login_required decorator this way:
@login_required(login_url=reverse_lazy('login'))
def my_view:
Now I know that I can specify the login URL in the settings, but this is not my question. The fact is that after redirecting to my "login" URL, he adds to it ?next=:
http://whatever.com/login/?next=/fakeurl/
I do not want it. Is there a way to override this? Thanks.
source
share