Skip to content

Commit

Permalink
fix: key error when resetting cookie consent
Browse files Browse the repository at this point in the history
  • Loading branch information
lfavole committed Oct 12, 2024
1 parent f66a1f6 commit 584e3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookies/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def reset(request: HttpRequest):
if request.method == "POST":
request.session.pop("cookie_consent")
request.session.pop("cookie_consent", {})
return redirect("/")


Expand Down

0 comments on commit 584e3b6

Please sign in to comment.