Browse Source

Conserta PEP8

pull/285/merge
Marcio Mazza 9 years ago
parent
commit
5e35b20c07
  1. 25
      base/forms.py
  2. 1
      sessao/forms.py

25
base/forms.py

@ -88,18 +88,19 @@ class CasaLegislativaTabelaAuxForm(ModelForm):
row3,
row4,
row5,
HTML("""<div class="col-md-12">
{% if not form.fotografia.errors and form.fotografia.value %}
<img class="img-responsive" width="225" height="300"
src="{{ MEDIA_URL }}{{ form.logotipo.value }}">
<br />
<input type="submit"
name="remover"
id="remover"
class="btn btn-warning"
value="Remover Logo"/>
{% endif %}
</div>"""),
HTML("""
<div class="col-md-12">
{% if not form.fotografia.errors and form.fotografia.value %}
<img class="img-responsive" width="225" height="300"
src="{{ MEDIA_URL }}{{ form.logotipo.value }}">
<br />
<input type="submit"
name="remover"
id="remover"
class="btn btn-warning"
value="Remover Logo"/>
{% endif %}
</div>"""),
row6,
row7,
row8,

1
sessao/forms.py

@ -6,7 +6,6 @@ from django.utils.translation import ugettext_lazy as _
import crispy_layout_mixin
from crispy_layout_mixin import form_actions
from sapl.settings import MAX_DOC_UPLOAD_SIZE
from .models import SessaoPlenaria

Loading…
Cancel
Save