Merge pull request #127 from pydata/not-reviewed-error

Fix queryset used in "Not Reviewed" view.
This commit is contained in:
Patrick Altman 2016-03-10 21:07:25 -06:00
commit 2717e4c819

View file

@ -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)