Changes between Version 1 and Version 2 of Ticket #32129, comment 12
- Timestamp:
- Mar 30, 2022, 5:41:18 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32129, comment 12
v1 v2 17 17 Last bit: 18 18 19 > Overall, perhaps an admonition steering people away from this API would be better: assuming I've got modificationin hand (which I need for this use-case) I think I'd just do:19 > Overall, perhaps an admonition steering people away from this API would be better: assuming I've got `modification` in hand (which I need for this use-case) I think I'd just do: 20 20 > 21 > expires_at = modification + timedelta(seconds=settings.SESSION_COOKIE_AGE)21 > `expires_at = modification + timedelta(seconds=settings.SESSION_COOKIE_AGE)` 22 22 > 23 23 > ... and not use these methods at all. (Loops back to comment from #18458 at the top...)