#NEWLINE# def product_list_view( request ) : #NEWLINE# #INDENT# if request . is_authenticated ( ) : #NEWLINE# #INDENT# ctx = { #NEWLINE# #INDENT# 'products' : Product . objects . all ( ) , #NEWLINE# 'cat_id' : request . GET [ 'cat_id' ] , #NEWLINE# #UNINDENT# } #NEWLINE# return render ( ctx , 'product_list.html' , context = ctx ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return HttpResponseForbidden ( )