Opened 12 years ago

Closed 12 years ago

#19754 closed Cleanup/optimization (invalid)

Missing surrounding quotes

Reported by: aves@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords: misprint
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

I think there are missing quotes on the third code block at https://docs.djangoproject.com/en/1.4/ref/models/instances/#django.db.models.permalink

(r'/archive/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$', archive_view)

Should certainly be:

(r'/archive/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/$', 'archive_view')

Change History (1)

comment:1 by Aymeric Augustin, 12 years ago

Resolution: invalid
Status: newclosed

It's legal (and possibly a good practice) to pass the view functions themselves in URLconfs.

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