Nachricht-
Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im
Auftrag von Matias Aguirre
Gesendet: Donnerstag, 10. März 2011 14:42
An: django-users
Betreff: Re: acces to dict
Hi
The problem is that django template system tries __getkey__ first and as you
are using a
Hi
The problem is that django template system tries __getkey__ first and as you
are using a defaultdict get key call is creating a new entry with key "items"
and empty list as value.
Try passing dict(prod_pool) to your template.
Regards,
Matías
Excerpts from Szabo, Patrick \(LNG-VIE\)'s message
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(, {'Dumme G\xc3\xa4nge revisited':
['Absatzkontrolle'], 'Das Sparschwein i
3 matches
Mail list logo