#NEWLINE# def get_queryset( self ) : #NEWLINE# #INDENT# latest_version = ProjectVersion . objects . get_latest ( 'Django' ) #NEWLINE# klasses = Klass . objects . select_related ( 'module__project_version__project' ) #NEWLINE# urls = [ { #NEWLINE# #INDENT# 'location' : reverse ( 'home' ) , #NEWLINE# 'priority' : 1.0 , #NEWLINE# #UNINDENT# } ] #NEWLINE# for klass in klasses : #NEWLINE# #INDENT# urls . append ( { #NEWLINE# #INDENT# 'location' : klass . get_absolute_url ( ) , #NEWLINE# 'priority' : ( 0.9 if ( klass . module . project_version == latest_version ) else 0.5 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return urls