Opened 4 years ago

Closed 4 years ago

#18159 closed Cleanup/optimization (fixed)

Missing import statement inside example django.shortcuts.redirect

Reported by: Nick Rehm <nicholas.rehm@…> Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The django.shorcuts.redirect example is missing the import statement inside the example
https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#django.shortcuts.redirect

Change History (3)

comment:1 Changed 4 years ago by Claude Paroz

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

Would it by enough to just add the import statement to the first example?

comment:2 Changed 4 years ago by jeffhui

I added the import statement to the first example in my pull request: https://github.com/django/django/pull/140

comment:3 Changed 4 years ago by Alex Gaynor

Resolution: fixed
Status: newclosed

In [17927]:

Fixed #18159 -- added an import statement to the docs. Thanks to Jeff Hui for the patch.

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