M src/wiki/templatetags/wiki_tags.py => src/wiki/templatetags/wiki_tags.py +1 -1
@@ 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)
M src/wiki/views/deleted_list.py => src/wiki/views/deleted_list.py +1 -1
@@ 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)