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

1
sessao/forms.py

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

Loading…
Cancel
Save