<s> from django . db . models . aggregates import Count <EOL> from django . shortcuts import render <EOL> from . . statmaps . models import Collection <EOL> def index_view ( request ) : <EOL> recent_collections = Collection . objects . exclude ( DOI__isnull = True ) . exclude ( private = True ) . order_by ( '<STR_LIT>' ) <EOL> recent_collections = [ col for col in recent_collections if col . basecollectionitem_set . count ( ) > <NUM_LIT:0> ] [ : <NUM_LIT:10> ] <EOL> context = { '<STR_LIT>' : recent_collections } <EOL> return render ( request , '<STR_LIT>' , context ) </s>
