#NEWLINE# def reset_all_filter( request , category_slug ) : #NEWLINE# #INDENT# 'Resets all product filter. Redirects to the category with given slug.\n    ' #NEWLINE# if ( 'product-filter' in request . session ) : #NEWLINE# #INDENT# del request . session [ 'product-filter' ] #NEWLINE# #UNINDENT# if ( 'price-filter' in request . session ) : #NEWLINE# #INDENT# del request . session [ 'price-filter' ] #NEWLINE# #UNINDENT# if ( 'manufacturer-filter' in request . session ) : #NEWLINE# #INDENT# del request . session [ 'manufacturer-filter' ] #NEWLINE# #UNINDENT# url = reverse ( 'lfs_category' , kwargs = { #NEWLINE# #INDENT# 'slug' : url , #NEWLINE# #UNINDENT# } ) #NEWLINE# return HttpResponseRedirect ( url )