symposion_app/vendor/symposion/reviews/management/commands/assign_reviewers.py
Sachi King d95d66dac8 Taking one out of PyCon's (US) book
We're lock-step with symposion, and upstream is dead.
Vendor it.
2017-05-27 20:11:39 +10:00

12 lines
420 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)