diff options
author | Jessica Tallon <jessica@megworld.co.uk> | 2014-08-19 14:03:53 +0100 |
---|---|---|
committer | Jessica Tallon <jessica@megworld.co.uk> | 2014-08-19 14:30:45 +0100 |
commit | 51f49118555be3021127602aef78a548850b59b5 (patch) | |
tree | adfb2b29508505b120e222f46f1b3e7373ad7538 | |
parent | b56cd89eb8cad5f2b4ac50d6c2cdba9ef3b90081 (diff) | |
download | mediagoblin-51f49118555be3021127602aef78a548850b59b5.tar.lz mediagoblin-51f49118555be3021127602aef78a548850b59b5.tar.xz mediagoblin-51f49118555be3021127602aef78a548850b59b5.zip |
Make blog_post_listing easier to read
This is Elronds change on #948. As 'blog_slug' is always
set in request.matchdict there is no need to do a default-none
get on the dictionary. This change just makes it easier to read.
-rw-r--r-- | mediagoblin/media_types/blog/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/media_types/blog/views.py b/mediagoblin/media_types/blog/views.py index 62806c3c..088164b9 100644 --- a/mediagoblin/media_types/blog/views.py +++ b/mediagoblin/media_types/blog/views.py @@ -259,7 +259,7 @@ def blog_post_listing(request, page, url_user=None): """ Page, listing all the blog posts of a particular blog. """ - blog_slug = request.matchdict.get('blog_slug', None) + blog_slug = request.matchdict['blog_slug'] blog = get_blog_by_slug(request, blog_slug, author=url_user.id) if not blog: return render_404(request) |