From bd68bb819b2f0cfe2ee19c35b53f0df1b6c60bb5 Mon Sep 17 00:00:00 2001 From: michem Date: Mon, 4 Feb 2013 22:55:01 +0100 Subject: [PATCH] Update source/tutorial/write-a-tumblelog-application-with-django-mongodb-engine.txt Error in urls.py --- ...write-a-tumblelog-application-with-django-mongodb-engine.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tutorial/write-a-tumblelog-application-with-django-mongodb-engine.txt b/source/tutorial/write-a-tumblelog-application-with-django-mongodb-engine.txt index b6ac29b1842..ed409d98b4c 100644 --- a/source/tutorial/write-a-tumblelog-application-with-django-mongodb-engine.txt +++ b/source/tutorial/write-a-tumblelog-application-with-django-mongodb-engine.txt @@ -247,7 +247,7 @@ to add the views: context_object_name="posts_list"), name="home" ), - url(r'^post/(?P[a-zA-Z0-9-]+)/$', PostDetailView.as_view( + url(r'^post/(?P[a-zA-Z0-9-]+)/$', DetailView.as_view( queryset=Post.objects.all(), context_object_name="post"), name="post"