From 357d53e8b4c3a64292f3814b765d689acbeeab86 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Tue, 12 Jan 2016 12:09:55 -0200 Subject: [PATCH] Adjust picture size Fix #116 --- base/views.py | 6 +++--- parlamentares/views.py | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/base/views.py b/base/views.py index 03e498d63..99601ba48 100644 --- a/base/views.py +++ b/base/views.py @@ -143,13 +143,14 @@ class CasaLegislativaTabelaAuxForm(ModelForm): row4, row5, HTML("""{% if form.logotipo.value %} - +

+ value="Remover Logo"/> {% endif %}""", ), row6, row7, @@ -197,7 +198,6 @@ class CasaLegislativaTableAuxView(FormMixin, GenericView): casa_save.save() elif casa is None: form.save() - return self.form_valid(form) else: return self.render_to_response({'form': form}) diff --git a/parlamentares/views.py b/parlamentares/views.py index e931b77ac..fa504c4e0 100644 --- a/parlamentares/views.py +++ b/parlamentares/views.py @@ -365,13 +365,14 @@ class ParlamentaresForm (ModelForm): row6, row7, row8, row9, row10, row11, row12, row13, HTML("""{% if form.fotografia.value %} - +

+ value="Remover Foto"/> {% endif %}""", ), row14, ButtonHolder(