Skip to content

Commit

Permalink
Remove smart_str
Browse files Browse the repository at this point in the history
  • Loading branch information
some1ataplace authored and sergei-maertens committed Sep 24, 2023
1 parent b7f5a84 commit 6a817e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cookie_consent/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 6a817e0

Please sign in to comment.