fixing E501 flake8 error

This commit is contained in:
Felipe Farias 2017-10-15 20:17:00 -03:00 committed by Iacopo Spalletti
parent c483662885
commit 6205c62709
No known key found for this signature in database
GPG Key ID: BDCBC2EB289F60C6
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,8 @@ class AuthorEntriesView(BaseBlogListView, ListView):
return self.optimize(qs)
def get_context_data(self, **kwargs):
kwargs['author'] = get_object_or_404(User, **{User.USERNAME_FIELD: self.kwargs.get('username')})
kwargs['author'] = get_object_or_404(User,
**{User.USERNAME_FIELD: self.kwargs.get('username')})
context = super(AuthorEntriesView, self).get_context_data(**kwargs)
return context