@method_decorator(require_POST)
    def dispatch(self, request, *args, **kwargs):
        request.session['currency'] = request.POST.get('currency', 'USD')
        origin = self.request.META.get('HTTP_REFERER', '/')
        return HttpResponseRedirect(origin)
:type root: Node
dataset/ETHPy150Open daveoncode/django-easy-currencies/django_easy_currencies/views/ChangeCurrencyView.py/ChangeCurrencyView.dispatch--crossover with--dataset/ETHPy150Open algorhythms/LintCode/Interval Minimum Number.py/SegmentTree.query