use an OrderedDict to ensure order of query params
This commit is contained in:
parent
f62a4dd8a3
commit
1aec9bc4b6
|
@ -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('&')
|
||||
|
|
Loading…
Reference in a new issue