#NEWLINE# def initial_context( self , request , id ) : #NEWLINE# #INDENT# if ( not ( 'feature_vote:votes' in request . session ) ) : #NEWLINE# #INDENT# request . session [ 'feature_vote:votes' ] = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# feature = get_object_or_404 ( Feature , id = id , is_public = True ) #NEWLINE# feature . vote = request . session [ 'feature_vote:votes' ] . get ( feature . id , 0 ) #NEWLINE# return { #NEWLINE# #INDENT# 'feature' : feature , #NEWLINE# #UNINDENT# }