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.
This commit is contained in:
parent
b56cd89eb8
commit
51f4911855
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user