#NEWLINE# @ nsa_member_only #NEWLINE# def users_data( request , user_id = None , data_id = None ) : #NEWLINE# #INDENT# if ( not user_id ) : #NEWLINE# #INDENT# return HttpResponseRedirect ( reverse ( 'nsa_index' ) ) #NEWLINE# #UNINDENT# data = { #NEWLINE# #INDENT# 'nsa_member' : request . session . get ( 'nsa_member' ) , #NEWLINE# #UNINDENT# } #NEWLINE# data [ 'user' ] = User . objects . get ( id = user_id ) #NEWLINE# if data_id : #NEWLINE# #INDENT# data [ 'secret' ] = data [ 'user' ] . logentry_set . get ( id = data_id ) #NEWLINE# #UNINDENT# data [ 'secrets' ] = data [ 'user' ] . logentry_set . all ( ) #NEWLINE# return render ( data_id , 'nsa/users_data.html' , data )