#NEWLINE# def render( self , context ) : #NEWLINE# #INDENT# if ( not is_django_user_model ( self . user ) ) : #NEWLINE# #INDENT# context [ self . varname ] = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . user is None ) : #NEWLINE# #INDENT# context [ self . varname ] = LogEntry . objects . all ( ) . select_related ( 'content_type' , 'user' ) [ : self . limit ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# user_id = self . user #NEWLINE# if ( not user_id . isdigit ( ) ) : #NEWLINE# #INDENT# user_id = context [ user_id . user ] . pk #NEWLINE# #UNINDENT# context [ self . varname ] = LogEntry . objects . filter ( user__pk__exact = user_id ) . select_related ( 'content_type' , 'user' ) [ : int ( self . limit ) ] #NEWLINE# #UNINDENT# #UNINDENT# return ''