From 6a817e06778de3480ba6d43009ce3ab5a19f8c82 Mon Sep 17 00:00:00 2001 From: some1ataplace <99353321+some1ataplace@users.noreply.github.com> Date: Tue, 29 Mar 2022 23:28:51 -0400 Subject: [PATCH] Remove smart_str --- cookie_consent/util.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cookie_consent/util.py b/cookie_consent/util.py index 57bf58f..e75fbac 100644 --- a/cookie_consent/util.py +++ b/cookie_consent/util.py @@ -2,8 +2,6 @@ import datetime from typing import Union -from django.utils.encoding import smart_str - from .cache import all_cookie_groups, get_cookie, get_cookie_group from .conf import settings from .models import ACTION_ACCEPTED, ACTION_DECLINED, LogItem @@ -101,7 +99,7 @@ def accept_cookies(request, response, varname=None): def delete_cookies(response, cookie_group): if cookie_group.is_deletable: for cookie in cookie_group.cookie_set.all(): - response.delete_cookie(smart_str(cookie.name), cookie.path, cookie.domain) + response.delete_cookie(cookie.name, cookie.path, cookie.domain) def decline_cookies(request, response, varname=None):