Wednesday, February 29, 2012

Post data Query Dict - Why not a list ?

Hi,

 

If i do

 

for key in request.POST.keys():

print request.POST[key]

 

Over this (which is the result of print request.Post):

 

<QueryDict: {u'hix': [u'Monatsreport'], u'my_choice_field': [u'2', u'29', u'42']}>

 

I get:

 

Monatsreport

42

 

Should I not get  lists ?

 

i.e:

 

[Monatsreport]

[2,29,42]

 

I need those other information from  'my_choice_field' how do I get them ?

 

Help would be much appreciated.

 

Best regards

 

. . . . . . . . . . . . . . . . . . . . . . . . . .

Ing. Patrick Szabo
XSLT Developer

LexisNexis
A-1030 Wien, Marxergasse 25

patrick.szabo@lexisnexis.at

Tel.: +43 1 53452 1573

Fax: +43 1 534 52 146



No comments:

Post a Comment