Did you consider just trying something like this: from django.http import QueryDict from collections import OrderedDict
class OrderedQueryDict(QueryDict, OrderedDict): pass my_dict = OrderedQueryDict(request.META['QUERY_STRING']) print request.META['QUERY_STRING'] print my_dict.items() On Thursday, June 8, 2017 at 10:12:31 AM UTC+3, Bernd Wechner wrote: > > Am curious if there's an easy way to walk through request.GET in the order > they appeared on the URL? It strikes me the dictionary has lost this > ordering information, and I wonder if it's available anywhere or how one > might extend Django to supply an OrderedDict when requested? > > Kind regards, > > Bernd > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/af162e78-8e16-4c19-b4e0-6c4288ca1385%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.