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:
parent
7b77b9aa29
commit
78d13a9ffa
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue