diff options
| author | Tom Christie | 2011-12-29 13:31:12 +0000 |
|---|---|---|
| committer | Tom Christie | 2011-12-29 13:31:12 +0000 |
| commit | 07349597ab936dc9887caa70b5d7d2860c897b12 (patch) | |
| tree | db1fdb8934e4d8dc8d3afe8d1e9fd076e3a4e27d /examples/blogpost/resources.py | |
| parent | 1bdc5eacc6290c486796eb5ab8fa29092137dab6 (diff) | |
| download | django-rest-framework-07349597ab936dc9887caa70b5d7d2860c897b12.tar.bz2 | |
whitespace fixes
Diffstat (limited to 'examples/blogpost/resources.py')
| -rw-r--r-- | examples/blogpost/resources.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/blogpost/resources.py b/examples/blogpost/resources.py index 9b91ed73..5a3c1ce2 100644 --- a/examples/blogpost/resources.py +++ b/examples/blogpost/resources.py @@ -12,16 +12,16 @@ class BlogPostResource(ModelResource): ordering = ('-created',) def comments(self, instance): - return reverse('comments', kwargs={'blogpost': instance.key}) + return reverse('comments', kwargs={'blogpost': instance.key}) class CommentResource(ModelResource): """ - A Comment is associated with a given Blog Post and has a *username* and *comment*, and optionally a *rating*. + A Comment is associated with a given Blog Post and has a *username* and *comment*, and optionally a *rating*. """ model = Comment fields = ('username', 'comment', 'created', 'rating', 'url', 'blogpost') ordering = ('-created',) - + def blogpost(self, instance): - return reverse('blog-post', kwargs={'key': instance.blogpost.key})
\ No newline at end of file + return reverse('blog-post', kwargs={'key': instance.blogpost.key}) |
