From 656e9e0f962f571af897f2a4e682c11e1b445da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Tue, 14 Mar 2023 11:34:49 -0300 Subject: [PATCH] Acerta verbose_name do model mesorregiao --- .../0007_alter_mesorregiao_options.py | 20 +++++++++++++++++++ sigi/apps/contatos/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 sigi/apps/contatos/migrations/0007_alter_mesorregiao_options.py diff --git a/sigi/apps/contatos/migrations/0007_alter_mesorregiao_options.py b/sigi/apps/contatos/migrations/0007_alter_mesorregiao_options.py new file mode 100644 index 0000000..0c7efcb --- /dev/null +++ b/sigi/apps/contatos/migrations/0007_alter_mesorregiao_options.py @@ -0,0 +1,20 @@ +# Generated by Django 4.1.7 on 2023-03-10 20:33 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("contatos", "0006_alter_unidadefederativa_regiao"), + ] + + operations = [ + migrations.AlterModelOptions( + name="mesorregiao", + options={ + "ordering": ("uf", "nome"), + "verbose_name": "mesorregião", + "verbose_name_plural": "mesorregiões", + }, + ), + ] diff --git a/sigi/apps/contatos/models.py b/sigi/apps/contatos/models.py index 3ab30c5..640fe8d 100644 --- a/sigi/apps/contatos/models.py +++ b/sigi/apps/contatos/models.py @@ -63,7 +63,7 @@ class Mesorregiao(models.Model): "uf", "nome", ) - verbose_name = (_("mesorregião"),) + verbose_name = _("mesorregião") verbose_name_plural = _("mesorregiões") def __str__(self):