#NEWLINE# def get_queryset( self ) : #NEWLINE# #INDENT# self . site = get_current_site ( self . request ) #NEWLINE# self . long_slug = self . get_long_slug ( ) #NEWLINE# if ( not filters . long_slug ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# self . set_channel_rules ( ) #NEWLINE# self . articleboxes = ContainerBox . objects . filter ( channel__long_slug = self . long_slug ) #NEWLINE# is_paginated = ( self . page_kwarg in self . request . GET ) #NEWLINE# if ( not is_paginated ) : #NEWLINE# #INDENT# for box in self . articleboxes : #NEWLINE# #INDENT# self . excluded_ids . update ( [ a . pk for a in box . ordered_containers ( ) ] ) #NEWLINE# #UNINDENT# #UNINDENT# filters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# filters [ 'site_domain' ] = self . site . domain #NEWLINE# filters [ 'date_available__lte' ] = timezone . now ( ) #NEWLINE# filters [ 'published' ] = True #NEWLINE# filters [ 'child_class' ] = 'Album' #NEWLINE# if ( self . channel and self . channel . is_root_node ( ) and ( not is_paginated ) ) : #NEWLINE# #INDENT# filters [ 'show_on_root_channel' ] = True #NEWLINE# #UNINDENT# queryset = Container . objects . filter ( ** filters ) . exclude ( pk__in = self . excluded_ids ) #NEWLINE# return queryset . _clone ( )