SHARE
TWEET

Untitled

a guest Jun 15th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. myvar = request.GET['myvar']
  2.      
  3. <class 'django.http.QueryDict'>
  4.      
  5. for var in request.GET['myvar']:
  6.     print(var)
  7.      
  8. 5
  9. 6
  10. 7
  11.      
  12. <QueryDict: {u'myvar': [u'123', u'567']}>
  13.      
  14. request.GET.getlist('myvar')
  15.      
  16. res_set = request.GET.copy()
  17. for item in res_set['myvar']:
  18.     item
  19. ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top