From 7864cd5350454736e54d06daa8440bb41caee5fd Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Fri, 12 Feb 2016 10:11:10 -0200 Subject: [PATCH] Fix #183 --- parlamentares/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parlamentares/views.py b/parlamentares/views.py index e8981b595..28e8d677b 100644 --- a/parlamentares/views.py +++ b/parlamentares/views.py @@ -458,7 +458,7 @@ class ParlamentaresEditarView(FormMixin, GenericView): form = ParlamentaresEditForm(request.POST, instance=parlamentar) if form.is_valid(): - if 'salvar' in request.POST: + if 'save' in request.POST: parlamentar = form.save(commit=False) if 'fotografia' in request.FILES: parlamentar.fotografia = request.FILES['fotografia']