Thank you you are amazing ============ here it the solution ============= if new_data['localisation']: print "new_data contains : " +str(new_data) loc=new_data.getlist('localisation') print 'loc : '+str(loc) print "new_data['localisation'] contains : " +str(loc) temp.set_localisation(loc)
the explanation is obvious when you know about it. here it is the complete explanation: http://www.djangoproject.com/documentation/request_response/#querydict-objects The short one is : * new_data['localisation'] return the last value * new_data.getlist('localisation') return the list this is the kind of thing where you have to get burned once before knowing it is hot for ever... Thank you very much limodou for your great support. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---