Code

#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')

Attachments (0)

Change History (1)

comment:1 Changed 15 months ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.