| Age | Commit message (Collapse) | Author |
|
datetime.UTC was added in Python 3.11.
|
|
Follow up to a92c83828785f12dcf90477413c2d04e1855fbb9.
|
|
Remaining test case ensures that uses of the alias are mapped
canonically by the migration writer.
|
|
"expires" and "max_age" are passed.
This fixes the case where you might pass set_cookie(expires=val, max_age=val)
and max_age is silently ignored.
|
|
max_age argument.
|
|
|
|
- Replaced datetime.utcnow() with datetime.now().
- Replaced datetime.utcfromtimestamp() with datetime.fromtimestamp().
- Replaced datetime.utctimetuple() with datetime.timetuple().
- Replaced calendar.timegm() and datetime.utctimetuple() with datetime.timestamp().
|
|
integer.
|
|
HttpResponse.delete_cookie().
Cookies with the "SameSite" flag set to None and without the "secure"
flag will be soon rejected by latest browser versions.
This affects sessions and messages cookies.
|
|
|
|
Thanks Florian Apolloner and Carlton Gibson for reviews.
|
|
* assertIsNone()/assertIsNotNone() instead of comparing to None.
* assertLess() for < comparisons.
* assertIs() for 'is' expressions.
* assertIsInstance() for isinstance() expressions.
* rounding of assertAlmostEqual() for round() expressions.
* assertIs(..., True/False) instead of comparing to True/False.
* assertIs()/assertIsNot() for ==/!= comparisons.
* assertNotEqual() for == comparisons.
* assertTrue()/assertFalse() instead of comparing to True/False.
|
|
2038 is chosen for compatibility with 32-bit systems.
|
|
Thanks Alex Gaynor for contributing to the patch.
|
|
__Secure/Host prefixes.
|
|
|