Browse Source

Conserta bug antigo em FormularioSimplicado de Matéria

pull/242/head
Edward Ribeiro 9 years ago
parent
commit
8629df2e31
  1. 2
      materia/views.py

2
materia/views.py

@ -72,7 +72,7 @@ class FormularioSimplificadoView(FormMixin, GenericView):
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):
form = FormularioSimplificadoForm(request.POST) form = FormularioSimplificadoForm(request.POST)
if form.is_valid: if form.is_valid():
materia = form.save(commit=False) materia = form.save(commit=False)
if 'texto_original' in request.FILES: if 'texto_original' in request.FILES:
materia.texto_original = request.FILES['texto_original'] materia.texto_original = request.FILES['texto_original']

Loading…
Cancel
Save