From af33a72fb55b6d5e1b27d18aafa7b74e7446c2c6 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 17 Feb 2006 17:45:44 +0000 Subject: [PATCH] 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 --- docs/generic_views.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\d{4})/(?P[a-z]{3})/(?P\w{1,2})/(?P\w+)/$', 'object_detail', dict(info_dict, slug_field='slug')), + (r'^(?P\d{4})/(?P[a-z]{3})/(?P\w{1,2})/(?P[-\w]+)/$', 'object_detail', dict(info_dict, slug_field='slug')), (r'^(?P\d{4})/(?P[a-z]{3})/(?P\w{1,2})/$', 'archive_day', info_dict), (r'^(?P\d{4})/(?P[a-z]{3})/$', 'archive_month', info_dict), (r'^(?P\d{4})/$', 'archive_year', info_dict),