2013-06-22 02:50:16 +00:00
|
|
|
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):
|
2017-04-17 12:51:48 +00:00
|
|
|
print("Creating assignments for %s" % proposal.title)
|
2013-06-22 02:50:16 +00:00
|
|
|
ReviewAssignment.create_assignments(proposal)
|