symposion_app/symposion/reviews/context_processors.py
Carlos Henrique Romano 36ab6d599f Fix flake8 warnings
2014-07-30 15:19:26 -03:00

11 lines
322 B
Python

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,
}