Changes between Version 1 and Version 2 of Ticket #32129, comment 12


Ignore:
Timestamp:
Mar 30, 2022, 5:41:18 AM (2 years ago)
Author:
Carlton Gibson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32129, comment 12

    v1 v2  
    1717Last bit:
    1818
    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:
     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:
    2020>
    21 > expires_at = modification + timedelta(seconds=settings.SESSION_COOKIE_AGE)
     21> `expires_at = modification + timedelta(seconds=settings.SESSION_COOKIE_AGE)`
    2222>
    2323> ... and not use these methods at all. (Loops back to comment from #18458 at the top...)
Back to Top