#NEWLINE# def reset_filter( request , category_slug , property_group_id , property_id ) : #NEWLINE# #INDENT# 'Resets product filter with given property id. Redirects to the category\n    with given slug.\n    ' #NEWLINE# if ( 'product-filter' in request . session ) : #NEWLINE# #INDENT# key = '{0}_{1}' . format ( property_group_id , property_id ) #NEWLINE# select_filter = request . session [ 'product-filter' ] . get ( 'select-filter' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( key in select_filter ) : #NEWLINE# #INDENT# del select_filter [ key ] #NEWLINE# request . session [ 'product-filter' ] = request . session [ 'product-filter' ] #NEWLINE# #UNINDENT# #UNINDENT# url = reverse ( 'lfs_category' , kwargs = { #NEWLINE# #INDENT# 'slug' : category_slug , #NEWLINE# #UNINDENT# } ) #NEWLINE# return HttpResponseRedirect ( url )