#NEWLINE# def decline_cookies( request , response , varname = None ) : #NEWLINE# #INDENT# '\n    Decline and delete cookies in CookieGroup specified by ``varname``.\n    ' #NEWLINE# cookie_dic = get_cookie_dict_from_request ( request ) #NEWLINE# for cookie_group in get_cookie_groups ( varname ) : #NEWLINE# #INDENT# cookie_dic [ cookie_group . varname ] = settings . COOKIE_CONSENT_DECLINE #NEWLINE# delete_cookies ( response , cookie_group ) #NEWLINE# LogItem . objects . create ( action = ACTION_DECLINED , cookiegroup = cookie_group , version = cookie_group . get_version ( ) ) #NEWLINE# #UNINDENT# set_cookie_dict_to_response ( response , varname )