Skip to content

Commit

Permalink
tentando dar push
Browse files Browse the repository at this point in the history
  • Loading branch information
digao21 committed May 19, 2016
2 parents 8994fdf + b1b6128 commit bf53468
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Empty file removed Aeacus/runner/entrada.txt
Empty file.
Binary file removed Aeacus/runner/programa.out
Binary file not shown.
Empty file removed Aeacus/runner/resposta.txt
Empty file.
9 changes: 9 additions & 0 deletions Promachos/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from Aeacus import compare
from pprint import pprint
from datetime import datetime
from itertools import izip_longest

import re

Expand Down Expand Up @@ -528,6 +529,14 @@ def aluno_turmas(request):
turma = Turma.objects.get(id=request.POST['post_entrar'])
aluno.turma_set.add(turma)
aluno.save()
atividades = Atividade.objects.filter(turma=turma)
for atividade in atividades:
relAlunoAtividade = RelAlunoAtividade(
foiEntregue=False,
aluno=aluno,
atividade=atividade,
)
relAlunoAtividade.save()

turmas_registradas = aluno.turma_set.all()
todas_turmas = Turma.objects.all()
Expand Down

0 comments on commit bf53468

Please sign in to comment.