summaryrefslogtreecommitdiff
path: root/docs/generic_views.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-02-17 17:45:44 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-02-17 17:45:44 +0000
commitaf33a72fb55b6d5e1b27d18aafa7b74e7446c2c6 (patch)
treeb04a71e67392ed27dc64aa6e7ef361dced29a285 /docs/generic_views.txt
parent186b5ccb34fba183a0cb9898020c555698bd355e (diff)
Fixed #1295 -- Fixed typo in generic views docs. Thanks, Matt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/generic_views.txt')
-rw-r--r--docs/generic_views.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/generic_views.txt b/docs/generic_views.txt
index 79b926e2cc..8a970a8e76 100644
--- a/docs/generic_views.txt
+++ b/docs/generic_views.txt
@@ -40,7 +40,7 @@ drives the blog on djangoproject.com::
}
urlpatterns = patterns('django.views.generic.date_based',
- (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>\w+)/$', 'object_detail', dict(info_dict, slug_field='slug')),
+ (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>[-\w]+)/$', 'object_detail', dict(info_dict, slug_field='slug')),
(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$', 'archive_day', info_dict),
(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', 'archive_month', info_dict),
(r'^(?P<year>\d{4})/$', 'archive_year', info_dict),