<s> """<STR_LIT>""" <EOL> import logging <EOL> from django . views . generic import TemplateView <EOL> from django . views . generic import ListView <EOL> from django . views . generic import DetailView <EOL> from django . utils . decorators import method_decorator <EOL> from django . contrib . auth . decorators import login_required <EOL> from models import * <EOL> class TodoEntryListView ( ListView ) : <EOL> context_object_name = "<STR_LIT>" <EOL> template_name = "<STR_LIT>" <EOL> def get_queryset ( self ) : <EOL> entries = Task . objects . all ( ) <EOL> return entries <EOL> @ method_decorator ( login_required ) <EOL> def dispatch ( self , request , * args , ** kwargs ) : <EOL> return super ( ListView , self ) . dispatch ( request , * args , ** kwargs ) </s>
