From 78d13a9ffa45e15cc89c2c98432c38231ee05d6b Mon Sep 17 00:00:00 2001 From: Martey Dodoo Date: Thu, 10 Mar 2016 20:35:41 -0500 Subject: [PATCH] Fix queryset used in "Not Reviewed" view. The `speaker` field on the `Proposal` model corresponds to a `Speaker`, not a `User`, so the old queryset created a ValueError. --- symposion/reviews/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/symposion/reviews/views.py b/symposion/reviews/views.py index 6e6e70fa..83cdc8bf 100644 --- a/symposion/reviews/views.py +++ b/symposion/reviews/views.py @@ -87,7 +87,8 @@ def review_section(request, section_slug, assigned=False, reviewed="all"): queryset = queryset.filter(reviews__user=request.user) reviewed = "user_reviewed" else: - queryset = queryset.exclude(reviews__user=request.user).exclude(speaker=request.user) + queryset = queryset.exclude(reviews__user=request.user).exclude( + speaker__user=request.user) reviewed = "user_not_reviewed" proposals = proposals_generator(request, queryset)