Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#31575 closed Bug (fixed)

Document admin's requirement on django.template.context_processors.request context processor.

Reported by: Jon Dufresne Owned by: nobody
Component: contrib.admin Version: dev
Severity: Release blocker Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Since commit d24ba1be7a53a113d19e2860c03aff9922efec24, the admin templates use the implied request variable normally added by django.template.context_processors.request.

As Django templates silence errors, this went unnoticed during testing, and won't immediately break the templates, but certain expected rendering features won't work.

Django should document this change:

  • In the release notes (provide a deprecation period where it is a warning only)
  • In the admin docs
  • In the system check framework as a warning (but eventually an error)

Change History (7)

comment:2 by Carlton Gibson, 4 years ago

Triage Stage: UnreviewedAccepted

Yes, good point. Thanks Jon.

comment:3 by Carlton Gibson, 4 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by Carlton Gibson, 4 years ago

Triage Stage: Ready for checkinAccepted

Suggestion from Mariusz on the PR, to the system check an error but only if the sidebar is enabled.

comment:5 by Carlton Gibson, 4 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

Resolution: fixed
Status: newclosed

In d522b51c:

Fixed #31575 -- Added system check for admin sidebar request context processor dependency.

Co-authored-by: Carlton Gibson <carlton.gibson@…>

comment:7 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

In 1c2d0fd:

[3.1.x] Fixed #31575 -- Added system check for admin sidebar request context processor dependency.

Co-authored-by: Carlton Gibson <carlton.gibson@…>

Backport of d522b51c401429c169d88742178a9b3777903d9e from master

Note: See TracTickets for help on using tickets.
Back to Top