From 59ead54e5629da63d35a62a3462ad8016cee7b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Tue, 6 Apr 2021 16:33:12 -0300 Subject: [PATCH] Verbose_name de Orgao --- .../migrations/0013_auto_20210406_1428.py | 18 ++++++++++++++++++ sigi/apps/casas/models.py | 4 ++++ sigi/apps/home/templatetags/menu_conf.yaml | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 sigi/apps/casas/migrations/0013_auto_20210406_1428.py 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/