Try iterating through the keys only and get the values from the
dictionary or multi-value dictionary by the keys:
items = # ... your custom dict or request.POST
for k in items:
v = items[k] # should be a string instead of a list with one value
# ... do whatever you want to do with the k
Hi,
Anybody has an idea about this?
Thanks
james
On Aug 24, 3:27 pm, james_027 <[EMAIL PROTECTED]> wrote:
> hi,
>
> I am using defaultdict to gather organize some data on request.POST.
> but the result seems to be different when execute outside django ...
>
> inside django I could get this resu
hi,
I am using defaultdict to gather organize some data on request.POST.
but the result seems to be different when execute outside django ...
inside django I could get this result ...
{u'item': [u'727'], u'unit_price': [u'5.50'], u'qty': [u'']}
{u'item': [u'2'], u'unit_price': [u'23500.00'], u'
3 matches
Mail list logo