Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#26776 closed Cleanup/optimization (fixed)

url documentation does not mention that view argument can be a non-view object

Reported by: Trey Hunner Owned by: Andrew Nester
Component: Documentation Version: 1.9
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

https://docs.djangoproject.com/en/1.9/ref/urls/#django.conf.urls.url

The documentation for url() doesn't mention that include() or a three-tuple can be provided instead of a view function for the "view" argument. This seems like an oversight. Maybe a link should be added to another section of the documentation?

Change History (4)

comment:1 by Tim Graham, 8 years ago

Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

comment:2 by Andrew Nester, 8 years ago

Owner: changed from nobody to Andrew Nester
Status: newassigned

comment:3 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In a12826bb:

Fixed #26776 -- Documented url()'s view argument.

comment:4 by Tim Graham <timograham@…>, 8 years ago

In 7a3cc295:

[1.10.x] Fixed #26776 -- Documented url()'s view argument.

Backport of a12826bba7a6d75862f99ae5cd48c4c1854208b8 from master

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