symposion_app/vendor/symposion/reviews/context_processors.py

12 lines
322 B
Python
Raw Normal View History

2012-08-14 07:54:45 +00:00
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,
}