File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
debug_toolbar/static/debug_toolbar/js Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -341,9 +341,9 @@ const djdt = {
341341 options . path ? "; path=" + options . path : "" ,
342342 options . domain ? "; domain=" + options . domain : "" ,
343343 options . secure ? "; secure" : "" ,
344- "sameSite " in options
345- ? "; sameSite =" + options . samesite
346- : "; sameSite=Lax " ,
344+ "samesite " in options
345+ ? "; samesite =" + options . samesite
346+ : "; samesite=lax " ,
347347 ] . join ( "" ) ;
348348
349349 return value ;
Original file line number Diff line number Diff line change 77* Adjusted app directories system check to allow for nested template loaders.
88* Switched from flake8, isort and pyupgrade to `ruff
99 <https://beta.ruff.rs/> `__.
10+ * Converted cookie keys to lowercase. Fixed the ``samesite `` argument to
11+ ``djdt.cookie.set ``.
1012
11134.1.0 (2023-05-15)
1214------------------
Original file line number Diff line number Diff line change @@ -421,7 +421,9 @@ common methods available.
421421 :param value: The value to be set.
422422
423423 :param options: The options for the value to be set. It should contain the
424- properties ``expires `` and ``path ``.
424+ properties ``expires `` and ``path ``. The properties ``domain ``,
425+ ``secure `` and ``samesite `` are also supported. ``samesite `` defaults
426+ to ``lax `` if not provided.
425427
426428.. js :function :: djdt .hide_toolbar
427429
You can’t perform that action at this time.
0 commit comments