Change list_tasks queryset to .task_set.all() and add fields to JSON dot notation in show_project.html.