Browse Source

Fix bug in Relatoria Template and Remove 'None' in UnidadeTramitacao

pull/202/head
Eduardo Calil 9 years ago
parent
commit
2bb0ed718c
  1. 4
      materia/models.py
  2. 1
      templates/materia/relatoria.html

4
materia/models.py

@ -3,7 +3,7 @@ from django.utils.translation import ugettext_lazy as _
from comissoes.models import Comissao from comissoes.models import Comissao
from parlamentares.models import Parlamentar, Partido from parlamentares.models import Parlamentar, Partido
from sapl.utils import YES_NO_CHOICES, make_choices from sapl.utils import YES_NO_CHOICES, make_choices, xstr
class TipoMateriaLegislativa(models.Model): class TipoMateriaLegislativa(models.Model):
@ -506,7 +506,7 @@ class UnidadeTramitacao(models.Model):
def __str__(self): def __str__(self):
return _('%(orgao)s - %(comissao)s') % { return _('%(orgao)s - %(comissao)s') % {
'orgao': self.orgao, 'comissao': self.comissao 'orgao': xstr(self.orgao), 'comissao': xstr(self.comissao)
} }

1
templates/materia/relatoria.html

@ -73,7 +73,6 @@
</ul> </ul>
<input type="submit" name="salvar" value="Salvar" class="primary button"/> <input type="submit" name="salvar" value="Salvar" class="primary button"/>
</form> </form>
{% endif %}
</fieldset> </fieldset>
</fieldset> </fieldset>
{% endblock %} {% endblock %}
Loading…
Cancel
Save