Support for multiple django annotations?

2012-01-11 Thread pradyumna
I am trying to use Django aggregation for an existing application that uses the following sql query: select sum(count) as sum_country_count, count(country_abbr) as country_cnt,country_abbr from (select log_datetime, count(country_abbr) as count,country_abbr from firewall where log_datetime>=DATE(

Why getting message object not iterable?

2009-05-16 Thread pradyumna
I am a newbie to Django.. I am wondering why I am getting 'Caught an exception while rendering: 'Car' object is not iterable? As per my understanding, in the template, if statement should not be true and else portion should be executed. Can anybody help me on this? View: def v_list(