From f53ac441731c7e4b1f2258eb4373ae845f7d6ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Sat, 1 May 2021 13:00:07 -0300 Subject: [PATCH] Aumentar campos no model casas.Funcionario --- .../migrations/0019_auto_20210501_1058.py | 26 +++++++++++++++++++ sigi/apps/casas/models.py | 4 +-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 sigi/apps/casas/migrations/0019_auto_20210501_1058.py diff --git a/sigi/apps/casas/migrations/0019_auto_20210501_1058.py b/sigi/apps/casas/migrations/0019_auto_20210501_1058.py new file mode 100644 index 0000000..0dc0e4b --- /dev/null +++ b/sigi/apps/casas/migrations/0019_auto_20210501_1058.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('casas', '0018_orgao_sigla'), + ] + + operations = [ + migrations.AlterField( + model_name='funcionario', + name='email', + field=models.CharField(max_length=250, verbose_name='e-mail', blank=True), + preserve_default=True, + ), + migrations.AlterField( + model_name='funcionario', + name='nota', + field=models.CharField(max_length=250, null=True, verbose_name='Telefones', blank=True), + preserve_default=True, + ), + ] diff --git a/sigi/apps/casas/models.py b/sigi/apps/casas/models.py index 4a63403..4aaf760 100644 --- a/sigi/apps/casas/models.py +++ b/sigi/apps/casas/models.py @@ -379,11 +379,11 @@ class Funcionario(models.Model): ) nota = models.CharField( _(u"Telefones"), - max_length=70, + max_length=250, null=True, blank=True ) - email = models.CharField(_(u'e-mail'), max_length=75, blank=True) + email = models.CharField(_(u'e-mail'), max_length=250, blank=True) # endereco = generic.GenericRelation('contatos.Endereco') endereco = models.CharField(_(u'Endereço'), max_length=100, blank=True) municipio = models.ForeignKey(