From f816075eb60589afedc70e5fb0dcef5c8f7cff0b Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Thu, 1 Mar 2018 12:58:20 +0100 Subject: [PATCH] Removed unneeded parentheses. --- src/wiki/templatetags/wiki_tags.py | 2 +- src/wiki/views/deleted_list.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wiki/templatetags/wiki_tags.py b/src/wiki/templatetags/wiki_tags.py index 4a97efc0..48151af8 100644 --- a/src/wiki/templatetags/wiki_tags.py +++ b/src/wiki/templatetags/wiki_tags.py @@ -182,7 +182,7 @@ def is_locked(model): """ Check if article is locked. """ - return (model.current_revision and model.current_revision.locked) + return model.current_revision and model.current_revision.locked @register.simple_tag(takes_context=True) diff --git a/src/wiki/views/deleted_list.py b/src/wiki/views/deleted_list.py index b68f8136..6068d5a7 100644 --- a/src/wiki/views/deleted_list.py +++ b/src/wiki/views/deleted_list.py @@ -18,7 +18,7 @@ class DeletedListView(TemplateView): article_list = models.Article.objects.all() deleted_articles = [] for article in article_list: - if(article.current_revision.deleted): + if article.current_revision.deleted: deleted_articles.append(article) kwargs['deleted_articles'] = deleted_articles return super().get_context_data(**kwargs) -- 2.45.2