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.
This commit is contained in:
Martey Dodoo 2016-03-10 20:35:41 -05:00
parent 7b77b9aa29
commit 78d13a9ffa

View file

@ -87,7 +87,8 @@ def review_section(request, section_slug, assigned=False, reviewed="all"):
queryset = queryset.filter(reviews__user=request.user) queryset = queryset.filter(reviews__user=request.user)
reviewed = "user_reviewed" reviewed = "user_reviewed"
else: 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" reviewed = "user_not_reviewed"
proposals = proposals_generator(request, queryset) proposals = proposals_generator(request, queryset)