From 5f8c1d1060d84bc6f4b83f5b37a9767e9af8a40d Mon Sep 17 00:00:00 2001 From: luxcem Date: Sun, 23 Apr 2017 18:53:41 +0200 Subject: [PATCH] rejected article view --- apps/rp/templates/rp/article_list.html | 6 ++++++ apps/rp/views/articles.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/apps/rp/templates/rp/article_list.html b/apps/rp/templates/rp/article_list.html index 1f730ce..3d947e9 100644 --- a/apps/rp/templates/rp/article_list.html +++ b/apps/rp/templates/rp/article_list.html @@ -37,6 +37,12 @@ {% endif %} + {% if filter_view == "rejected" %} + + {% endif %} + diff --git a/apps/rp/views/articles.py b/apps/rp/views/articles.py index c60e89c..3e71625 100644 --- a/apps/rp/views/articles.py +++ b/apps/rp/views/articles.py @@ -13,6 +13,8 @@ class ArticleListFlux(UDList): qs = Article.objects.filter(status="PUBLISHED") elif filter_view == "draft": qs = Article.objects.filter(und_score__gte=3, status="PENDING") + elif filter_view == "rejected": + qs = Article.objects.filter(status="REJECTED") else: qs = Article.objects.filter(status="PENDING") -- GitLab