Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#31909 closed Bug (fixed)

Context processor mention in the AdminSite.enable_nav_sidebar requirements is incorrect.

Reported by: Enderson Menezes Owned by: Enderson Menezes
Component: Documentation Version: 3.1
Severity: Release blocker Keywords: nav sidebar bug 3.1
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by Enderson Menezes)

I'm trying to use the new function of "AdminSite.enable_nav_sidebar", however when adding the requirement described in the documentation, django does not find the module "django.contrib.messages.context_processors.request" and without it I have the following bug that is attached.

Attachments (1)

image.png (67.9 KB ) - added by Enderson Menezes 4 years ago.
Image

Download all attachments as: .zip

Change History (8)

by Enderson Menezes, 4 years ago

Attachment: image.png added

Image

comment:1 by Enderson Menezes, 4 years ago

Description: modified (diff)

comment:2 by Enderson Menezes, 4 years ago

Easy pickings: set

comment:3 by Enderson Menezes, 4 years ago

Summary: AdminSite.enable_nav_sidebarAdminSite.enable_nav_sidebar with doc error

comment:4 by Mariusz Felisiak, 4 years ago

Component: contrib.adminDocumentation
Severity: NormalRelease blocker
Summary: AdminSite.enable_nav_sidebar with doc errorContext processor mention in the AdminSite.enable_nav_sidebar requirements is incorrect.
Triage Stage: UnreviewedAccepted

Thanks for this report. You're right there is a typo in docs, there should be django.template.context_processors.request instead of django.contrib.messages.context_processors.request.

Would you like to provide a patch?

comment:5 by Mariusz Felisiak, 4 years ago

Has patch: set
Owner: changed from nobody to Enderson Menezes
Status: newassigned
UI/UX: unset

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

Resolution: fixed
Status: assignedclosed

In 67e4a9a:

Fixed #31909 -- Fixed typo in docs/ref/contrib/admin/index.txt.

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

In 26ccc770:

[3.1.x] Fixed #31909 -- Fixed typo in docs/ref/contrib/admin/index.txt.

Backport of 67e4a9a4b9a40609fecc14f1604929ff2259a15a from master

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