~netlandish/django-wiki

a05028e9581cc569a24f53125c55c44ebfd72639 — Benjamin Bach 6 years ago 8002ac2 + f816075
Merge pull request #845 from atombrella/parentheses

Removed unneeded parentheses.
2 files changed, 2 insertions(+), 2 deletions(-)

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