django-class-based-auth-views
django-class-based-auth-views copied to clipboard
Preserve redirect URL across requests
django.contrib.auth.views.login
passes the success URL to the context. LoginView
doesn't. Adding a get_context_data
method to my subclass with
context[self.redirect_field_name] = self.get_success_url()
preserves the behavior I had with the stock login.