From 22b7265649bb05e240aa9dd946d5cdd10510bc78 Mon Sep 17 00:00:00 2001 From: florapdx Date: Mon, 29 Apr 2013 14:13:10 -0700 Subject: [PATCH] removed user_reviews template tag; now being handled by review_section view --- symposion/reviews/templatetags/review_tags.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/symposion/reviews/templatetags/review_tags.py b/symposion/reviews/templatetags/review_tags.py index 33879d53..abfb136d 100644 --- a/symposion/reviews/templatetags/review_tags.py +++ b/symposion/reviews/templatetags/review_tags.py @@ -6,20 +6,6 @@ from symposion.proposals.models import ProposalBase register = template.Library() - -@register.assignment_tag(takes_context=True) -def user_reviews(context): - request = context["request"] - reviews = Review.objects.filter(user=request.user) - return reviews - -@register.assignment_tag(takes_context=True) -def user_not_reviewed(context): - request = context["request"] - already_reviewed = [r.proposal_id for r in Review.objects.filter(user=request.user)] - yet_to_review = ProposalBase.objects.exclude(id__in=[p.id for p in ProposalBase.objects.filter(id__in=already_reviewed)]).exclude(speaker=request.user) - return yet_to_review - @register.assignment_tag(takes_context=True) def review_assignments(context): request = context["request"]