expephalon/core/views/generic.py
Klaus-Uwe Mitterer fb02819e36 Improved currency display
Implemented RedirectViews
Changed URL scheme for submodules
Updated kumisms and ratesapi submodules
2020-06-10 13:43:14 +02:00

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)