Hi, 

 

I'm passing a dict of lists on to a template like this:

 

return render_to_response('reports.html', {'produkte': prod_pool}
,context_instance=RequestContext(request))

 

prod_pool looks like this:

 

defaultdict(<type 'list'>, {'Dumme G\xc3\xa4nge revisited':
['Absatzkontrolle'], 'Das Sparschwein im Wandel der Zeiten':
['Konvertierungsanleitung', 'Sonstiges'], 'Schlager 1':
['Konvertierungsanleitung'], 'RWZ 1': ['Absatzkontrolle',
'Konvertierungsanleitung'], 'RWZ 3': ['Absatzkontrolle',
'Konvertierungsanleitung']})

 

In my template i do this:

 

{% for produkt, akt in produkte.items %}

            <h2>{{ produkt }}</h2>

            <table border=0>                             

                                   <tr>

                                               <th>Aktivitaet</th>

                                               <th>Zeit</th>

                                   <tr>

                                   <tr>

                                               {% for x in akt%}

                                               <td>{{ x }}</td>

                                               {% endfor %}

                                   </tr>

                                   <tr>

                                               <td><b>Gesamt: </b></td>

                                               <td><b> </b></td>

                                   </tr>

            </table>

{% endfor %}

 

Unfortunately i don't get a single table...

Can anyone help me ?!

 

Kind regards


. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
 XSLT Developer 
LexisNexis
Marxergasse 25, 1030 Wien

mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573 
Fax: +43 (1) 534 52 - 146 





-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to