Files @ 46a10b9e3ae6
Branch filter:

Location: symposion_app/symposion/reviews/context_processors.py

Patrick Altman
Merge pull request #107 from miurahr/gen_str_name_when_save

slot: generate __unicode__ name when save()
from symposion.proposals.models import ProposalSection


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