only run generator on proposals with a selected status
This commit is contained in:
parent
6ee3ff5d45
commit
54991cd4d1
1 changed files with 2 additions and 0 deletions
|
@ -305,6 +305,8 @@ def review_status(request, section_slug=None, key=None):
|
||||||
admin = request.user.has_perm("reviews.can_manage_%s" % section_slug)
|
admin = request.user.has_perm("reviews.can_manage_%s" % section_slug)
|
||||||
|
|
||||||
for status in proposals:
|
for status in proposals:
|
||||||
|
if key and key != status:
|
||||||
|
continue
|
||||||
proposals[status] = list(proposals_generator(request, proposals[status], check_speaker=not admin))
|
proposals[status] = list(proposals_generator(request, proposals[status], check_speaker=not admin))
|
||||||
|
|
||||||
if key:
|
if key:
|
||||||
|
|
Loading…
Reference in a new issue