Re: Having trouble overriding template_object_name for the list_detail in generic view

2011-02-11 Thread Chen Xu
Thanks a lot.. That does solve my problem. On Fri, Feb 11, 2011 at 7:39 AM, JHeasly wrote: > You need to closely read the second sentence of template_object_name item > in the *Optional arguments* section of the generic view bject_list > docs

Re: Having trouble overriding template_object_name for the list_detail in generic view

2011-02-11 Thread JHeasly
You need to closely read the second sentence of template_object_name item in the *Optional arguments* section of the generic view bject_list docs. Based on the template_object_name in your code

Having trouble overriding template_object_name for the list_detail in generic view

2011-02-11 Thread Chen Xu
Hi, everyone: I am following the tutorial 4 on the Django official site. so this is what I got: info_dict = { 'queryset' : Poll.objects.all(), } urlpatterns = patterns('', (r'^$', 'list_detail.object_list', dict(info_dict, template_name='polls/index.html',