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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/posts/views.py b/app/posts/views.py
index 250611f..6241314 100644
--- a/app/posts/views.py
+++ b/app/posts/views.py
@@ -54,6 +54,10 @@ class PostTodoView(LoginRequiredMixin, ListView):
class PostNotesView(LoginRequiredMixin, DetailView):
model = Post
+ def get_context_data(self, **kwargs):
+ context = super(PostNotesView, self).get_context_data(**kwargs)
+ context['notes'] = self.get_object().note_set.all().order_by("status")
+ return context
class PostUpdateView(LoginRequiredMixin, UpdateView):
model = Post