Files @ c8218bb9d0ea
Branch filter:

Location: symposion_app/vendor/symposion/reviews/context_processors.py

James Polley
Correct variable name to reflect what it's naming

IT's not the container name, it's the image name. Fix the name to be
less confusing.
from symposion.proposals.models import ProposalSection


def reviews(request):
    sections = []
    manage_sections = {}
    for section in ProposalSection.objects.all():
        if request.user.has_perm("reviews.can_review_%s" % section.section.slug):
            sections.append(section)
        if request.user.has_perm("reviews.can_manage_%s" % section.section.slug):
            manage_sections.setdefault(section, []).append
    return {
        "review_sections": sections,
        "manage_sections": manage_sections
    }