1
Vote

Django template no completion when using context_object_name

description

In the azure/django tutorial, we use the following code in urls.py:
urlpatterns = patterns('',
    url(r'^$',
        ListView.as_view(
            queryset=Poll.objects.order_by('-pub_date')[:5],
            context_object_name='latest_poll_list',
            template_name='polls/index.html'),
        name='index'),
    url(r'^(?P<poll_id>\d+)/vote/$', 'polls.views.vote', name='vote'),
)
In index.html, I don't get completions for 'latest_poll_list' with {{ or {%

comments