Browse Source

Verbose_name de Orgao

pull/32/head
Sesostris Vieira 4 years ago
parent
commit
59ead54e56
  1. 18
      sigi/apps/casas/migrations/0013_auto_20210406_1428.py
  2. 4
      sigi/apps/casas/models.py
  3. 2
      sigi/apps/home/templatetags/menu_conf.yaml

18
sigi/apps/casas/migrations/0013_auto_20210406_1428.py

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('casas', '0012_auto_20210406_1420'),
]
operations = [
migrations.AlterModelOptions(
name='tipoorgao',
options={'verbose_name': 'Tipo de \xf3rg\xe3o', 'verbose_name_plural': 'Tipos de \xf3rg\xe3o'},
),
]

4
sigi/apps/casas/models.py

@ -24,6 +24,10 @@ class TipoOrgao(models.Model):
sigla = models.CharField(_(u"Sigla"), max_length=5)
nome = models.CharField(_(u"Nome"), max_length=100)
class Meta:
verbose_name = _(u"Tipo de órgão")
verbose_name_plural = _(u"Tipos de órgão")
def __unicode__(self):
return self.nome

2
sigi/apps/home/templatetags/menu_conf.yaml

@ -21,7 +21,7 @@ main_menu:
url: casas/portfolio/
- title: Carteira de relacionamentos
url: casas/carteira
- title: Tipos de Casas
- title: Tipos de órgãos
url: casas/tipoorgao/
# - title: Legislaturas
# url: parlamentares/legislatura/

Loading…
Cancel
Save