diff --git a/sigi/apps/casas/migrations/0013_auto_20210406_1428.py b/sigi/apps/casas/migrations/0013_auto_20210406_1428.py new file mode 100644 index 0000000..4b1851d --- /dev/null +++ b/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'}, + ), + ] diff --git a/sigi/apps/casas/models.py b/sigi/apps/casas/models.py index 14e4cac..71939c0 100644 --- a/sigi/apps/casas/models.py +++ b/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 diff --git a/sigi/apps/home/templatetags/menu_conf.yaml b/sigi/apps/home/templatetags/menu_conf.yaml index 3283527..afc56ae 100644 --- a/sigi/apps/home/templatetags/menu_conf.yaml +++ b/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/