aboutsummaryrefslogtreecommitdiffstats
path: root/examples/blogpost/urls.py
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-02-19 17:55:32 +0000
committertom christie tom@tomchristie.com2011-02-19 17:55:32 +0000
commit67c48f758f3a3aa435e4f2ccf41764ae596447fb (patch)
treeee59df28bf6fe2a5bfcb84ce2a26ac7c0a9b9db5 /examples/blogpost/urls.py
parent38c6a37af7cd006b05a08318aa34f6aacf03b4aa (diff)
downloaddjango-rest-framework-67c48f758f3a3aa435e4f2ccf41764ae596447fb.tar.bz2
Fix kwargs in url conf to be more consistent, also fixes broken blog posts example (every blog post showed all comments)
Diffstat (limited to 'examples/blogpost/urls.py')
-rw-r--r--examples/blogpost/urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/blogpost/urls.py b/examples/blogpost/urls.py
index b2df96a1..1306b0d7 100644
--- a/examples/blogpost/urls.py
+++ b/examples/blogpost/urls.py
@@ -4,6 +4,6 @@ from blogpost.views import BlogPosts, BlogPostInstance, Comments, CommentInstanc
urlpatterns = patterns('',
url(r'^$', BlogPosts.as_view(), name='blog-posts'),
url(r'^(?P<key>[^/]+)/$', BlogPostInstance.as_view(), name='blog-post'),
- url(r'^(?P<blogpost_id>[^/]+)/comments/$', Comments.as_view(), name='comments'),
+ url(r'^(?P<blogpost>[^/]+)/comments/$', Comments.as_view(), name='comments'),
url(r'^(?P<blogpost>[^/]+)/comments/(?P<id>[^/]+)/$', CommentInstance.as_view(), name='comment'),
)