~netlandish/django-wiki

f816075eb60589afedc70e5fb0dcef5c8f7cff0b — Mads Jensen 6 years ago be65c45
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)