Klaus-Uwe Mitterer
fb02819e36
Implemented RedirectViews Changed URL scheme for submodules Updated kumisms and ratesapi submodules
9 lines
No EOL
265 B
Python
9 lines
No EOL
265 B
Python
from django.views import View
|
|
from django.shortcuts import redirect
|
|
|
|
class RedirectView(View):
|
|
def dispatch(self, request, *args, **kwargs):
|
|
try:
|
|
return redirect(request.GET.get("next"))
|
|
except:
|
|
return redirect(self.next) |