only run generator on proposals with a selected status

This commit is contained in:
Luke Hatcher 2012-08-25 20:00:13 -04:00
parent 6ee3ff5d45
commit 54991cd4d1

View file

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