-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You are overwriting the 'answer' key every time. So there is only one key called 'answer'. Try editing it so you make the 'answer' key a list of the 'attach_list's, that is one possible solution.
Or possibly do you mean to use if loops in the template since you are only passing one object? Luke [email protected] "I [may] disapprove of what you say, but I will defend to the death your right to say it." -- Voltaire Salvatore Leone wrote: > Hi, > > I pass to my template a dictionary of answer -> [attach_list] > > so the data structure is > > answers_list[answer] = attach_list > > > Inside the template I actually can read the answers: > > {% for answer in answers_list.keys %} > #use the answer object > > # answer_list.answer returns a attach list, right? > {% for attach in answer_list.answer %} > # use the attach > # but nothing happens! > {% endfor %} > > any idea? > -Salvatore > > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpxlOwACgkQXQrGVCncjPx7RACghWejN3IDjVHsVENQ99W2PA/D IRMAn2r6nX2J3bECrpYAxp1IFSCCYH8C =+qy+ -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

