#32916: CsrfViewMiddleware's request.META["CSRF_COOKIE_USED"] and
request.csrf_cookie_needs_reset can be combined
-------------------------------------+-------------------------------------
Reporter: Chris Jerdonek | Owner: Chris
Type: | Jerdonek
Cleanup/optimization | Status: assigned
Component: CSRF | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* cc: Shai Berger, Florian Apolloner (added)
* easy: 1 => 0
* stage: Unreviewed => Accepted
Comment:
Tentatively accepted. `csrf_cookie_needs_reset` is undocumented API but I
found projects that use it, so we should at least add a short release
note.
Florian, Shai, can you take a look? Your opinions would be greatly
appreciated. I've checked an extensive discussion in #20869 and
[https://github.com/django/django/pull/5605 PR] but couldn't find any
rationale for this duality.
--
Ticket URL: <https://code.djangoproject.com/ticket/32916#comment:3>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.8b72a5ebc94e879aff2dd065e9c3a454%40djangoproject.com.