#20687: Document that the max_age argument of TimeStampSigner.unsign should be a number of seconds --------------------------------------+-------------------- Reporter: bmispelon | Owner: nobody Type: Cleanup/optimization | Status: new Component: Core (Other) | Version: master Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 --------------------------------------+-------------------- Currently, neither the documentation [1] or the code [2] are very explicit about what kind of value `max_age` is supposed to receive (a `timedelta`, a `datetime`, ...?).
It's only by looking at the error message that you can guess it's expecting seconds. [1] https://docs.djangoproject.com/en/dev/topics/signing/#verifying- timestamped-values [2] https://github.com/django/django/blob/master/django/core/signing.py#L185 -- Ticket URL: <https://code.djangoproject.com/ticket/20687> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/052.52270794faf9ff74451570ce1378dd50%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.