Re: Template syntax issues w dict

2015-05-02 Thread Bernardo Brik
just a small correction – lose the parens after items: {% for org, num in attendees_per_org.items %} On Friday, May 1, 2015 at 4:48:25 AM UTC-3, ADEWALE ADISA wrote: > > If I can understand your code, of seems you want a table of : Institution > | Number of attendees > So if am right u can achive

Re: Template syntax issues w dict

2015-05-01 Thread Lachlan Musicman
.items Damn. Thanks On May 1, 2015 17:48, "ADEWALE ADISA" wrote: > If I can understand your code, of seems you want a table of : Institution > | Number of attendees > So if am right u can achive it this way : > > {% for org, num in attendees_per_org.items() %} > >

Re: Template syntax issues w dict

2015-05-01 Thread ADEWALE ADISA
If I can understand your code, of seems you want a table of : Institution | Number of attendees So if am right u can achive it this way : {% for org, num in attendees_per_org.items() %} {{ org }} {{ num }} {% endfor %} Since your dataset