diff options
| author | tom christie tom@tomchristie.com | 2011-02-19 17:55:32 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-02-19 17:55:32 +0000 |
| commit | 67c48f758f3a3aa435e4f2ccf41764ae596447fb (patch) | |
| tree | ee59df28bf6fe2a5bfcb84ce2a26ac7c0a9b9db5 /examples/blogpost/models.py | |
| parent | 38c6a37af7cd006b05a08318aa34f6aacf03b4aa (diff) | |
| download | django-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/models.py')
| -rw-r--r-- | examples/blogpost/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/blogpost/models.py b/examples/blogpost/models.py index c85ca788..ba7810dc 100644 --- a/examples/blogpost/models.py +++ b/examples/blogpost/models.py @@ -30,7 +30,7 @@ class BlogPost(models.Model): @models.permalink def comments_url(self): """Link to a resource which lists all comments for this blog post.""" - return ('comments', (), {'blogpost_id': self.key}) + return ('comments', (), {'blogpost': self.key}) def __unicode__(self): return self.title |
