18 lines
497 B
Python
18 lines
497 B
Python
|
import csv
|
||
|
import os
|
||
|
import random
|
||
|
|
||
|
from django.contrib.auth import models
|
||
|
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)
|