Files @ cb4b0fac3871
Branch filter:

Location: symposion_app/symposion/reviews/management/commands/assign_reviewers.py

Patrick Altman
Merge branch 'django1.6-compatibility' of https://github.com/mbrochh/symposion into mbrochh-django1.6-compatibility

Conflicts:
symposion/boxes/urls.py
symposion/cms/urls.py
symposion/conference/urls.py
symposion/proposals/models.py
symposion/proposals/urls.py
symposion/reviews/urls.py
symposion/schedule/models.py
symposion/schedule/urls.py
symposion/speakers/urls.py
symposion/sponsorship/urls.py
symposion/teams/urls.py
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)