3
from django.core.management.base import NoArgsCommand
5
from reports import models
7
class Command(NoArgsCommand):
8
help = "Deal with team proposals."
10
def handle_noargs(self, **options):
11
proposals = models.TeamProposal.objects.all()
12
for proposal in proposals.filter(approved=True):
13
p, created = models.Team.objects.get_or_create(lpid=proposal.team)