Commit b82e4274 authored by Wellington Gabriel Vicente de Souza's avatar Wellington Gabriel Vicente de Souza Committed by Odair M.

Resolve "leitura csv não funciona"

parent b6711131
...@@ -36,8 +36,16 @@ class SubmissionCreate(SuccessMessageMixin, CreateView): ...@@ -36,8 +36,16 @@ class SubmissionCreate(SuccessMessageMixin, CreateView):
def form_valid(self, form): def form_valid(self, form):
# muda nomes dos arquivos # muda nomes dos arquivos = "historico.xls" if ".csv" in = "matricula.xls" = "historico.csv"
else: = "historico.xls"
if ".csv" in = "matricula.csv"
else: = "matricula.xls"
# adiciona a form.instance.usuario e curso # adiciona a form.instance.usuario e curso = self.request.user.educator = self.request.user.educator
degree = Degree.objects.get( degree = Degree.objects.get(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment