#NEWLINE# def get( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# self . object_list = self . get_queryset ( ) #NEWLINE# allow_empty = self . get_allow_empty ( ) #NEWLINE# if ( ( not allow_empty ) and ( len ( self . object_list ) == 0 ) ) : #NEWLINE# #INDENT# msg = _ ( 'Empty list and ``%(class_name)s.allow_empty`` is False.' ) #NEWLINE# raise Http404 ( ( msg % { #NEWLINE# #INDENT# 'class_name' : self . __class__ . __name__ , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# #UNINDENT# context = self . get_context_data ( object_list = self . object_list , page_template = self . page_template ) #NEWLINE# return self . render_to_response ( allow_empty )