summaryrefslogtreecommitdiff
path: root/app/posts/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/views.py')
-rw-r--r--app/posts/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/posts/views.py b/app/posts/views.py
index 402b473..3e0ac23 100644
--- a/app/posts/views.py
+++ b/app/posts/views.py
@@ -20,6 +20,11 @@ class PostNewView(LoginRequiredMixin, ListView):
def get_queryset(self):
return Post.objects.filter(user=self.request.user).filter(is_live=0)
+ def get_context_data(self, **kwargs):
+ context = super(PostNewView, self).get_context_data(**kwargs)
+ context['reviews'] = Note.objects.filter(plan__in=[1,2])
+ return context
+
class PostTodoView(LoginRequiredMixin, ListView):
template_name = 'posts/post_table.html'