Ignore withdrawn proposals for random choice
This commit is contained in:
parent
b20dc75ea6
commit
ac57053ecf
1 changed files with 2 additions and 0 deletions
2
vendor/symposion/reviews/views.py
vendored
2
vendor/symposion/reviews/views.py
vendored
|
@ -228,6 +228,8 @@ def review_random_proposal(request, section_slug):
|
||||||
queryset = ProposalBase.objects.filter(kind__section=section.section)
|
queryset = ProposalBase.objects.filter(kind__section=section.section)
|
||||||
# Remove ones already reviewed
|
# Remove ones already reviewed
|
||||||
queryset = queryset.exclude(reviews__user=request.user)
|
queryset = queryset.exclude(reviews__user=request.user)
|
||||||
|
# Remove withdrawn talks
|
||||||
|
queryset = queryset.exclude(cancelled=True)
|
||||||
# Remove talks the reviewer can't vote on -- their own.
|
# Remove talks the reviewer can't vote on -- their own.
|
||||||
queryset = queryset.exclude(speaker__user=request.user)
|
queryset = queryset.exclude(speaker__user=request.user)
|
||||||
queryset = queryset.exclude(additional_speakers__user=request.user)
|
queryset = queryset.exclude(additional_speakers__user=request.user)
|
||||||
|
|
Loading…
Reference in a new issue