symposion_app/symposion/reviews/management/commands/assign_reviewers.py
2014-01-13 16:49:40 -05:00

12 lines
422 B
Python

from django.core.management.base import BaseCommand
from symposion.reviews.models import ReviewAssignment
from symposion.proposals.models import ProposalBase
class Command(BaseCommand):
def handle(self, *args, **options):
for proposal in ProposalBase.objects.filter(cancelled=0):
print "Creating assignments for %s" % (proposal.title,)
ReviewAssignment.create_assignments(proposal)