symposion_app/symposion/reviews/management/commands/assign_reviewers.py
Sachi King 298b162be6 Flake8 Fixes
Mostly whitespace fixes
Some unicode fixes
Fixed up CSV writer.  str is not bytes and all.
2017-04-17 22:51:48 +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)