Query string from request

linkaiyi
Follow

get parameter with list values

Don’t send it in that format in the first place. The standard way of sending multiple values for a single HTML is to send the parameter multiple times:

http://127.0.0.1:8000/auction/?status=omn&status=aad

which will correctly give you [‘omn’,’aad’] when you use request.GET.getlist(‘status’).

get query items

self.request.GET.items()

get query in dictionary

self.request.GET.dict()

Object has 0 attachments

Was this article helpful?

This article is viewed 8 times!

Recent Viewed Articles

Related Articles

0 Comments

Leave a Comment

Support