Malcolm Tredinnick wrote:
> On Thu, 2008-03-06 at 09:17 +0530, M.Ganesh wrote:
>   
>> Hi,
>>
>> I've pasted a minimalist code here: http://dpaste.com/hold/38198/
>>
>> Only the table caption and the table headers show-up in the web page. 
>> The LunchEnrty_list.count also shows up correctly, but there are no 
>> table rows.
>>     
>
> You are trying to iteratate over LunchEntries_list.all, but
> LunchEntries_list is defines as LunchEntries.objects.all(). Querysets,
> which is what LunchEntries_list is, do not have an all() method. Only
> model managers (LunchEntries.objects) have an all().
>
> So drop the "all" bit in your tempate iteration.
>
> Malcolm
>
>   
Hi Malcom and Michael,

Yes. Dropping the *.all* worked

Thanks a lot

Regards Ganesh


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to