diff options
Diffstat (limited to 'app/gtd/views.py')
-rw-r--r-- | app/gtd/views.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/gtd/views.py b/app/gtd/views.py index fc96187..a3b7eab 100644 --- a/app/gtd/views.py +++ b/app/gtd/views.py @@ -97,15 +97,12 @@ class GTDProjectListView(ListView): model = GTDProject template_name = "gtd/project_list.html" - def get_queryset(self): - print("hello world") - print(self.kwargs['project_type']) + def get_queryset(self, *args, **kwargs): if self.kwargs['project_type']: project_type_reverse = dict((v, k) for k, v in GTDProject.PROJECT_TYPE) - project_type = project_type_reverse[self.kwargs['project_type'].title()] + project_type = project_type_reverse[self.kwargs['project_type']] return GTDProject.objects.filter(project_type=project_type) - context = super(GTDProjectListView, self).get_context_data(**kwargs) - return context + return GTDProject.objects.all() def get_context_data(self, **kwargs): context = super(GTDProjectListView, self).get_context_data(**kwargs) |