use an OrderedDict to ensure order of query params

This commit is contained in:
Thomas Steen Rasmussen 2016-05-17 07:54:54 +02:00
parent f62a4dd8a3
commit 1aec9bc4b6

View file

@ -24,6 +24,7 @@ from shop.models import (
)
from .forms import AddToOrderForm
from .epay import calculate_epay_hash, validate_epay_callback
from collections import OrderedDict
class EnsureUserOwnsOrderMixin(SingleObjectMixin):
@ -271,7 +272,7 @@ class EpayCallbackView(View):
)
if 'orderid' in request.GET:
query = dict(
query = OrderedDict(
map(
lambda x: tuple(x.split('=')),
request.META['QUERY_STRING'].split('&')