diff options
Diffstat (limited to 'app/posts/views.py')
-rw-r--r-- | app/posts/views.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/posts/views.py b/app/posts/views.py index f406d29..402b473 100644 --- a/app/posts/views.py +++ b/app/posts/views.py @@ -8,20 +8,21 @@ from notes.models import Note class PostListView(LoginRequiredMixin, ListView): model = Post + template_name = 'posts/post_table.html' def get_queryset(self): return Post.objects.filter(user=self.request.user).order_by("-needs_update") class PostNewView(LoginRequiredMixin, ListView): - template_name = 'notes/notes_detail.html' + template_name = 'posts/post_list.html' def get_queryset(self): return Post.objects.filter(user=self.request.user).filter(is_live=0) class PostTodoView(LoginRequiredMixin, ListView): - template_name = 'posts/post_list.html' + template_name = 'posts/post_table.html' def get_queryset(self): qs = Post.objects.filter(user=self.request.user) @@ -34,5 +35,6 @@ class PostTodoView(LoginRequiredMixin, ListView): context['reviews'] = Note.objects.filter(plan=1) return context + class PostNotesView(LoginRequiredMixin, DetailView): model = Post |