From c70e262afec944a66f7998f1f969f363985abece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Fri, 21 Jan 2022 11:01:48 -0300 Subject: [PATCH] Remove binary strings from migration files --- sigi/apps/casas/migrations/0001_initial.py | 28 +++++++++---------- .../migrations/0002_auto_20150710_1247.py | 4 +-- .../migrations/0004_auto_20201015_0810.py | 2 +- ...005_casalegislativa_gerentes_interlegis.py | 2 +- .../migrations/0007_auto_20201016_1632.py | 8 +++--- sigi/apps/contatos/migrations/0001_initial.py | 8 +++--- .../migrations/0002_auto_20151104_0810.py | 4 +-- .../migrations/0004_auto_20210611_0946.py | 2 +- .../apps/convenios/migrations/0001_initial.py | 12 ++++---- .../0017_convenio_id_contrato_gescon.py | 2 +- sigi/apps/eventos/migrations/0001_initial.py | 2 +- .../migrations/0009_tipoevento_categoria.py | 2 +- sigi/apps/eventos/migrations/0010_modulo.py | 2 +- .../migrations/0013_modelodeclaracao.py | 2 +- sigi/apps/eventos/migrations/0015_anexo.py | 4 +-- .../ocorrencias/migrations/0001_initial.py | 4 +-- sigi/apps/servicos/migrations/0001_initial.py | 6 ++-- .../migrations/0002_tiposervico_modo.py | 2 +- .../migrations/0008_auto_20210519_1117.py | 4 +-- .../servidores/migrations/0001_initial.py | 22 +++++++-------- 20 files changed, 61 insertions(+), 61 deletions(-) diff --git a/sigi/apps/casas/migrations/0001_initial.py b/sigi/apps/casas/migrations/0001_initial.py index 4577a98..5adb0d9 100644 --- a/sigi/apps/casas/migrations/0001_initial.py +++ b/sigi/apps/casas/migrations/0001_initial.py @@ -16,24 +16,24 @@ class Migration(migrations.Migration): name='CasaLegislativa', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('nome', models.CharField(help_text=b'Exemplo: C\xc3\xa2mara Municipal de Pains.', max_length=60)), - ('search_text', sigi.apps.utils.SearchField(field_names=[b'nome'], editable=False)), - ('cnpj', models.CharField(max_length=32, verbose_name=b'CNPJ', blank=True)), + ('nome', models.CharField(help_text='Exemplo: C\xc3\xa2mara Municipal de Pains.', max_length=60)), + ('search_text', sigi.apps.utils.SearchField(field_names=['nome'], editable=False)), + ('cnpj', models.CharField(max_length=32, verbose_name='CNPJ', blank=True)), ('observacoes', models.TextField(verbose_name='observa\xe7\xf5es', blank=True)), - ('codigo_interlegis', models.CharField(max_length=3, verbose_name=b'C\xc3\xb3digo Interlegis', blank=True)), - ('logradouro', models.CharField(help_text=b'Avenida, rua, pra\xc3\xa7a, jardim, parque...', max_length=100)), + ('codigo_interlegis', models.CharField(max_length=3, verbose_name='C\xc3\xb3digo Interlegis', blank=True)), + ('logradouro', models.CharField(help_text='Avenida, rua, pra\xc3\xa7a, jardim, parque...', max_length=100)), ('bairro', models.CharField(max_length=100, blank=True)), ('cep', models.CharField(max_length=32)), - ('email', models.EmailField(max_length=128, verbose_name=b'e-mail', blank=True)), + ('email', models.EmailField(max_length=128, verbose_name='e-mail', blank=True)), ('pagina_web', models.URLField(help_text=b'Exemplo: http://www.camarapains.mg.gov.br.', verbose_name='p\xe1gina web', blank=True)), ('ult_alt_endereco', models.DateTimeField(null=True, verbose_name='\xdaltima altera\xe7\xe3o do endere\xe7o', blank=True)), - ('foto', models.ImageField(height_field=b'foto_altura', width_field=b'foto_largura', upload_to=b'imagens/casas', blank=True)), + ('foto', models.ImageField(height_field='foto_altura', width_field='foto_largura', upload_to='imagens/casas', blank=True)), ('recorte', models.CharField('foto', max_length=255)), ('foto_largura', models.SmallIntegerField(null=True, editable=False)), ('foto_altura', models.SmallIntegerField(null=True, editable=False)), ('data_instalacao', models.DateField(null=True, verbose_name='Data de instala\xe7\xe3o da Casa Legislativa', blank=True)), - ('gerente_contas', models.ForeignKey(verbose_name=b'Gerente de contas', blank=True, to='servidores.Servidor', null=True, on_delete=models.CASCADE)), - ('municipio', models.ForeignKey(verbose_name=b'munic\xc3\xadpio', to='contatos.Municipio', on_delete=models.CASCADE)), + ('gerente_contas', models.ForeignKey(verbose_name='Gerente de contas', blank=True, to='servidores.Servidor', null=True, on_delete=models.CASCADE)), + ('municipio', models.ForeignKey(verbose_name='munic\xc3\xadpio', to='contatos.Municipio', on_delete=models.CASCADE)), ], options={ 'ordering': ('nome',), @@ -46,13 +46,13 @@ class Migration(migrations.Migration): name='Funcionario', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('nome', models.CharField(max_length=60, verbose_name=b'nome completo')), - ('sexo', models.CharField(default=b'M', max_length=1, choices=[(b'M', b'Masculino'), (b'F', b'Feminino')])), + ('nome', models.CharField(max_length=60, verbose_name='nome completo')), + ('sexo', models.CharField(default='M', max_length=1, choices=[('M', 'Masculino'), ('F', 'Feminino')])), ('nota', models.CharField(max_length=70, null=True, blank=True)), - ('email', models.CharField(max_length=75, verbose_name=b'e-mail', blank=True)), + ('email', models.CharField(max_length=75, verbose_name='e-mail', blank=True)), ('cargo', models.CharField(max_length=100, null=True, blank=True)), ('funcao', models.CharField(max_length=100, null=True, verbose_name='fun\xe7\xe3o', blank=True)), - ('setor', models.CharField(default=b'outros', max_length=100, choices=[(b'presidente', b'Presidente'), (b'contato_interlegis', b'Contato Interlegis'), (b'infraestrutura_fisica', b'Infraestrutura F\xc3\xadsica'), (b'estrutura_de_ti', b'Estrutura de TI'), (b'organizacao_do_processo_legislativo', b'Organiza\xc3\xa7\xc3\xa3o do Processo Legislativo'), (b'producao_legislativa', b'Produ\xc3\xa7\xc3\xa3o Legislativa'), (b'estrutura_de_comunicacao_social', b'Estrutura de Comunica\xc3\xa7\xc3\xa3o Social'), (b'estrutura_de_recursos_humanos', b'Estrutura de Recursos Humanos'), (b'gestao', b'Gest\xc3\xa3o'), (b'outros', b'Outros')])), + ('setor', models.CharField(default='outros', max_length=100, choices=[('presidente', 'Presidente'), ('contato_interlegis', 'Contato Interlegis'), ('infraestrutura_fisica', 'Infraestrutura F\xc3\xadsica'), ('estrutura_de_ti', 'Estrutura de TI'), ('organizacao_do_processo_legislativo', 'Organiza\xc3\xa7\xc3\xa3o do Processo Legislativo'), ('producao_legislativa', 'Produ\xc3\xa7\xc3\xa3o Legislativa'), ('estrutura_de_comunicacao_social', 'Estrutura de Comunica\xc3\xa7\xc3\xa3o Social'), ('estrutura_de_recursos_humanos', 'Estrutura de Recursos Humanos'), ('gestao', 'Gest\xc3\xa3o'), ('outros', 'Outros')])), ('tempo_de_servico', models.CharField(max_length=50, null=True, verbose_name='tempo de servi\xe7o', blank=True)), ('ult_alteracao', models.DateTimeField(null=True, verbose_name='\xdaltima altera\xe7\xe3o', blank=True)), ('casa_legislativa', models.ForeignKey(to='casas.CasaLegislativa', on_delete=models.CASCADE)), @@ -78,7 +78,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='casalegislativa', name='tipo', - field=models.ForeignKey(verbose_name=b'Tipo', to='casas.TipoCasaLegislativa', on_delete=models.CASCADE), + field=models.ForeignKey(verbose_name='Tipo', to='casas.TipoCasaLegislativa', on_delete=models.CASCADE), preserve_default=True, ), migrations.AlterUniqueTogether( diff --git a/sigi/apps/casas/migrations/0002_auto_20150710_1247.py b/sigi/apps/casas/migrations/0002_auto_20150710_1247.py index 070cea8..faa6adc 100644 --- a/sigi/apps/casas/migrations/0002_auto_20150710_1247.py +++ b/sigi/apps/casas/migrations/0002_auto_20150710_1247.py @@ -20,7 +20,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='casalegislativa', name='inclusao_digital', - field=models.CharField(default=b'NAO PESQUISADO', max_length=30, choices=[(b'NAO PESQUISADO', 'N\xe3o pesquisado'), (b'NAO POSSUI PORTAL', 'N\xe3o possui portal'), (b'PORTAL MODELO', 'Possui Portal Modelo'), (b'OUTRO PORTAL', 'Possui outro portal')]), + field=models.CharField(default='NAO PESQUISADO', max_length=30, choices=[('NAO PESQUISADO', 'N\xe3o pesquisado'), ('NAO POSSUI PORTAL', 'N\xe3o possui portal'), ('PORTAL MODELO', 'Possui Portal Modelo'), ('OUTRO PORTAL', 'Possui outro portal')]), preserve_default=True, ), migrations.AddField( @@ -38,7 +38,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='casalegislativa', name='gerente_contas', - field=models.ForeignKey(related_name='casas_que_gerencia', verbose_name=b'Gerente de contas', blank=True, to='servidores.Servidor', null=True, on_delete=models.CASCADE), + field=models.ForeignKey(related_name='casas_que_gerencia', verbose_name='Gerente de contas', blank=True, to='servidores.Servidor', null=True, on_delete=models.CASCADE), preserve_default=True, ), migrations.AlterField( diff --git a/sigi/apps/casas/migrations/0004_auto_20201015_0810.py b/sigi/apps/casas/migrations/0004_auto_20201015_0810.py index dd855bf..36dafd6 100644 --- a/sigi/apps/casas/migrations/0004_auto_20201015_0810.py +++ b/sigi/apps/casas/migrations/0004_auto_20201015_0810.py @@ -13,7 +13,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='casalegislativa', name='gerente_contas', - field=models.ForeignKey(related_name='casas_que_gerencia_old', verbose_name=b'Gerente de contas', blank=True, to='servidores.Servidor', null=True, on_delete=models.CASCADE), + field=models.ForeignKey(related_name='casas_que_gerencia_old', verbose_name='Gerente de contas', blank=True, to='servidores.Servidor', null=True, on_delete=models.CASCADE), preserve_default=True, ), ] diff --git a/sigi/apps/casas/migrations/0005_casalegislativa_gerentes_interlegis.py b/sigi/apps/casas/migrations/0005_casalegislativa_gerentes_interlegis.py index ad036ee..3a06049 100644 --- a/sigi/apps/casas/migrations/0005_casalegislativa_gerentes_interlegis.py +++ b/sigi/apps/casas/migrations/0005_casalegislativa_gerentes_interlegis.py @@ -14,7 +14,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='casalegislativa', name='gerentes_interlegis', - field=models.ManyToManyField(related_name='casas_que_gerencia', verbose_name=b'Gerentes Interlegis', to='servidores.Servidor'), + field=models.ManyToManyField(related_name='casas_que_gerencia', verbose_name='Gerentes Interlegis', to='servidores.Servidor'), preserve_default=True, ), ] diff --git a/sigi/apps/casas/migrations/0007_auto_20201016_1632.py b/sigi/apps/casas/migrations/0007_auto_20201016_1632.py index 25fff60..5558455 100644 --- a/sigi/apps/casas/migrations/0007_auto_20201016_1632.py +++ b/sigi/apps/casas/migrations/0007_auto_20201016_1632.py @@ -49,13 +49,13 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='casalegislativa', name='foto', - field=models.ImageField(upload_to=b'imagens/casas', width_field=b'foto_largura', height_field=b'foto_altura', blank=True, verbose_name='Foto'), + field=models.ImageField(upload_to='imagens/casas', width_field='foto_largura', height_field='foto_altura', blank=True, verbose_name='Foto'), preserve_default=True, ), migrations.AlterField( model_name='casalegislativa', name='inclusao_digital', - field=models.CharField(default=b'NAO PESQUISADO', max_length=30, verbose_name='Inclus\xe3o digital', choices=[(b'NAO PESQUISADO', 'N\xe3o pesquisado'), (b'NAO POSSUI PORTAL', 'N\xe3o possui portal'), (b'PORTAL MODELO', 'Possui Portal Modelo'), (b'OUTRO PORTAL', 'Possui outro portal')]), + field=models.CharField(default='NAO PESQUISADO', max_length=30, verbose_name='Inclus\xe3o digital', choices=[('NAO PESQUISADO', 'N\xe3o pesquisado'), ('NAO POSSUI PORTAL', 'N\xe3o possui portal'), ('PORTAL MODELO', 'Possui Portal Modelo'), ('OUTRO PORTAL', 'Possui outro portal')]), preserve_default=True, ), migrations.AlterField( @@ -97,13 +97,13 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='funcionario', name='setor', - field=models.CharField(default=b'outros', max_length=100, verbose_name='Setor', choices=[(b'presidente', 'Presidente'), (b'contato_interlegis', 'Contato Interlegis'), (b'infraestrutura_fisica', 'Infraestrutura F\xedsica'), (b'estrutura_de_ti', 'Estrutura de TI'), (b'organizacao_do_processo_legislativo', 'Organiza\xe7\xe3o do Processo Legislativo'), (b'producao_legislativa', 'Produ\xe7\xe3o Legislativa'), (b'estrutura_de_comunicacao_social', 'Estrutura de Comunica\xe7\xe3o Social'), (b'estrutura_de_recursos_humanos', 'Estrutura de Recursos Humanos'), (b'gestao', 'Gest\xe3o'), (b'outros', 'Outros')]), + field=models.CharField(default='outros', max_length=100, verbose_name='Setor', choices=[('presidente', 'Presidente'), ('contato_interlegis', 'Contato Interlegis'), ('infraestrutura_fisica', 'Infraestrutura F\xedsica'), ('estrutura_de_ti', 'Estrutura de TI'), ('organizacao_do_processo_legislativo', 'Organiza\xe7\xe3o do Processo Legislativo'), ('producao_legislativa', 'Produ\xe7\xe3o Legislativa'), ('estrutura_de_comunicacao_social', 'Estrutura de Comunica\xe7\xe3o Social'), ('estrutura_de_recursos_humanos', 'Estrutura de Recursos Humanos'), ('gestao', 'Gest\xe3o'), ('outros', 'Outros')]), preserve_default=True, ), migrations.AlterField( model_name='funcionario', name='sexo', - field=models.CharField(default=b'M', max_length=1, verbose_name='Sexo', choices=[(b'M', 'Masculino'), (b'F', 'Feminino')]), + field=models.CharField(default='M', max_length=1, verbose_name='Sexo', choices=[('M', 'Masculino'), ('F', 'Feminino')]), preserve_default=True, ), migrations.AlterField( diff --git a/sigi/apps/contatos/migrations/0001_initial.py b/sigi/apps/contatos/migrations/0001_initial.py index 95f1a0c..6c7c274 100644 --- a/sigi/apps/contatos/migrations/0001_initial.py +++ b/sigi/apps/contatos/migrations/0001_initial.py @@ -33,7 +33,7 @@ class Migration(migrations.Migration): name='Endereco', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('tipo', models.CharField(max_length=15, choices=[(b'aeroporto', 'Aeroporto'), (b'alameda', 'Alameda'), (b'area', '\xc1rea'), (b'avenida', 'Avenida'), (b'campo', 'Campo'), (b'chacara', 'Ch\xe1cara'), (b'colonia', 'Col\xf4nia'), (b'condominio', 'Condom\xednio'), (b'conjunto', 'Conjunto'), (b'distrito', 'Distrito'), (b'esplanada', 'Esplanada'), (b'estacao', 'Esta\xe7\xe3o'), (b'estrada', 'Estrada'), (b'favela', 'Favela'), (b'fazenda', 'Fazenda'), (b'feira', 'Feira'), (b'jardim', 'Jardim'), (b'ladeira', 'Ladeira'), (b'lago', 'Lago'), (b'lagoa', 'Lagoa'), (b'largo', 'Largo'), (b'loteamento', 'Loteamento'), (b'morro', 'Morro'), (b'nucleo', 'N\xfacleo'), (b'parque', 'Parque'), (b'passarela', 'Passarela'), (b'patio', 'P\xe1tio'), (b'praca', 'Pra\xe7a'), (b'quadra', 'Quadra'), (b'recanto', 'Recanto'), (b'residencial', 'Residencial'), (b'rodovia', 'Rodovia'), (b'rua', 'Rua'), (b'setor', 'Setor'), (b'sitio', 'S\xedtio'), (b'travessa', 'Travessa'), (b'trecho', 'Trecho'), (b'trevo', 'Trevo'), (b'vale', 'Vale'), (b'vereda', 'Vereda'), (b'via', 'Via'), (b'viaduto', 'Viaduto'), (b'viela', 'Viela'), (b'vila', 'Vila'), (b'outro', 'Outro')])), + ('tipo', models.CharField(max_length=15, choices=[('aeroporto', 'Aeroporto'), ('alameda', 'Alameda'), ('area', '\xc1rea'), ('avenida', 'Avenida'), ('campo', 'Campo'), ('chacara', 'Ch\xe1cara'), ('colonia', 'Col\xf4nia'), ('condominio', 'Condom\xednio'), ('conjunto', 'Conjunto'), ('distrito', 'Distrito'), ('esplanada', 'Esplanada'), ('estacao', 'Esta\xe7\xe3o'), ('estrada', 'Estrada'), ('favela', 'Favela'), ('fazenda', 'Fazenda'), ('feira', 'Feira'), ('jardim', 'Jardim'), ('ladeira', 'Ladeira'), ('lago', 'Lago'), ('lagoa', 'Lagoa'), ('largo', 'Largo'), ('loteamento', 'Loteamento'), ('morro', 'Morro'), ('nucleo', 'N\xfacleo'), ('parque', 'Parque'), ('passarela', 'Passarela'), ('patio', 'P\xe1tio'), ('praca', 'Pra\xe7a'), ('quadra', 'Quadra'), ('recanto', 'Recanto'), ('residencial', 'Residencial'), ('rodovia', 'Rodovia'), ('rua', 'Rua'), ('setor', 'Setor'), ('sitio', 'S\xedtio'), ('travessa', 'Travessa'), ('trecho', 'Trecho'), ('trevo', 'Trevo'), ('vale', 'Vale'), ('vereda', 'Vereda'), ('via', 'Via'), ('viaduto', 'Viaduto'), ('viela', 'Viela'), ('vila', 'Vila'), ('outro', 'Outro')])), ('logradouro', models.CharField(max_length=100)), ('numero', models.CharField(max_length=15, blank=True)), ('complemento', models.CharField(max_length=15, blank=True)), @@ -82,7 +82,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('numero', models.CharField(help_text='Exemplo: (31)8851-9898.', max_length=64, verbose_name='n\xfamero')), - ('tipo', models.CharField(default=b'I', max_length=1, choices=[(b'F', 'Fixo'), (b'M', 'M\xf3vel'), (b'X', 'Fax'), (b'I', 'Indefinido')])), + ('tipo', models.CharField(default='I', max_length=1, choices=[('F', 'Fixo'), ('M', 'M\xf3vel'), ('X', 'Fax'), ('I', 'Indefinido')])), ('nota', models.CharField(max_length=70, null=True, blank=True)), ('ult_alteracao', models.DateTimeField(auto_now=True, verbose_name='\xdaltima altera\xe7\xe3o', null=True)), ('object_id', models.PositiveIntegerField()), @@ -98,9 +98,9 @@ class Migration(migrations.Migration): fields=[ ('codigo_ibge', models.PositiveIntegerField(help_text='C\xf3digo do estado segundo IBGE.', unique=True, serialize=False, verbose_name='c\xf3digo IBGE', primary_key=True)), ('nome', models.CharField(max_length=25, verbose_name='Nome UF')), - ('search_text', sigi.apps.utils.SearchField(field_names=[b'nome'], editable=False)), + ('search_text', sigi.apps.utils.SearchField(field_names=['nome'], editable=False)), ('sigla', models.CharField(help_text='Exemplo: MG.', unique=True, max_length=2)), - ('regiao', models.CharField(max_length=2, verbose_name='regi\xe3o', choices=[(b'SL', 'Sul'), (b'SD', 'Sudeste'), (b'CO', 'Centro-Oeste'), (b'NE', 'Nordeste'), (b'NO', 'Norte')])), + ('regiao', models.CharField(max_length=2, verbose_name='regi\xe3o', choices=[('SL', 'Sul'), ('SD', 'Sudeste'), ('CO', 'Centro-Oeste'), ('NE', 'Nordeste'), ('NO', 'Norte')])), ('populacao', models.PositiveIntegerField(verbose_name='popula\xe7\xe3o')), ], options={ diff --git a/sigi/apps/contatos/migrations/0002_auto_20151104_0810.py b/sigi/apps/contatos/migrations/0002_auto_20151104_0810.py index b35632a..ea8b6fa 100644 --- a/sigi/apps/contatos/migrations/0002_auto_20151104_0810.py +++ b/sigi/apps/contatos/migrations/0002_auto_20151104_0810.py @@ -17,7 +17,7 @@ class Migration(migrations.Migration): fields=[ ('codigo_ibge', models.PositiveIntegerField(help_text='C\xf3digo da mesorregi\xe3o segundo o IBGE', unique=True, serialize=False, verbose_name='C\xf3digo IBGE', primary_key=True)), ('nome', models.CharField(max_length=100, verbose_name='Nome mesorregi\xe3o')), - ('search_text', sigi.apps.utils.SearchField(field_names=[b'nome'], editable=False)), + ('search_text', sigi.apps.utils.SearchField(field_names=['nome'], editable=False)), ('uf', models.ForeignKey(verbose_name='UF', to='contatos.UnidadeFederativa', on_delete=models.CASCADE)), ], options={ @@ -32,7 +32,7 @@ class Migration(migrations.Migration): fields=[ ('codigo_ibge', models.PositiveIntegerField(help_text='C\xf3digo da microrregi\xe3o segundo o IBGE', unique=True, serialize=False, verbose_name='C\xf3digo IBGE', primary_key=True)), ('nome', models.CharField(max_length=100, verbose_name='Nome microrregi\xe3o')), - ('search_text', sigi.apps.utils.SearchField(field_names=[b'nome'], editable=False)), + ('search_text', sigi.apps.utils.SearchField(field_names=['nome'], editable=False)), ('mesorregiao', models.ForeignKey(to='contatos.Mesorregiao', on_delete=models.CASCADE)), ], options={ diff --git a/sigi/apps/contatos/migrations/0004_auto_20210611_0946.py b/sigi/apps/contatos/migrations/0004_auto_20210611_0946.py index 7dea070..81c63d2 100644 --- a/sigi/apps/contatos/migrations/0004_auto_20210611_0946.py +++ b/sigi/apps/contatos/migrations/0004_auto_20210611_0946.py @@ -18,7 +18,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='unidadefederativa', name='regiao', - field=models.CharField(max_length=2, verbose_name='regi\xe3o', choices=[(b'CO', 'Centro-Oeste'), (b'NE', 'Nordeste'), (b'NO', 'Norte'), (b'SD', 'Sudeste'), (b'SL', 'Sul')]), + field=models.CharField(max_length=2, verbose_name='regi\xe3o', choices=[('CO', 'Centro-Oeste'), ('NE', 'Nordeste'), ('NO', 'Norte'), ('SD', 'Sudeste'), ('SL', 'Sul')]), preserve_default=True, ), ] diff --git a/sigi/apps/convenios/migrations/0001_initial.py b/sigi/apps/convenios/migrations/0001_initial.py index 19bd5f4..605277a 100644 --- a/sigi/apps/convenios/migrations/0001_initial.py +++ b/sigi/apps/convenios/migrations/0001_initial.py @@ -17,8 +17,8 @@ class Migration(migrations.Migration): name='Anexo', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('arquivo', models.FileField(max_length=500, upload_to=b'apps/convenios/anexo/arquivo')), - ('descricao', models.CharField(max_length=b'70', verbose_name='descri\xe7\xe3o')), + ('arquivo', models.FileField(max_length=500, upload_to='apps/convenios/anexo/arquivo')), + ('descricao', models.CharField(max_length='70', verbose_name='descri\xe7\xe3o')), ('data_pub', models.DateTimeField(default=datetime.datetime.now, verbose_name='data da publica\xe7\xe3o do anexo')), ], options={ @@ -30,7 +30,7 @@ class Migration(migrations.Migration): name='Convenio', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('search_text', sigi.apps.utils.SearchField(field_names=[b'casa_legislativa'], editable=False)), + ('search_text', sigi.apps.utils.SearchField(field_names=['casa_legislativa'], editable=False)), ('num_processo_sf', models.CharField(help_text='Formatos:
Antigo: XXXXXX/XX-X.
SIGAD: XXXXX.XXXXXX/XXXX-XX', max_length=20, verbose_name='n\xfamero do processo SF (Senado Federal)', blank=True)), ('num_convenio', models.CharField(max_length=10, verbose_name='n\xfamero do conv\xeanio', blank=True)), ('data_adesao', models.DateField(null=True, verbose_name='Aderidas', blank=True)), @@ -83,7 +83,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('data', models.DateField()), - ('observacao', models.CharField(max_length=b'512', null=True, verbose_name='observa\xe7\xe3o', blank=True)), + ('observacao', models.CharField(max_length='512', null=True, verbose_name='observa\xe7\xe3o', blank=True)), ('convenio', models.ForeignKey(verbose_name='conv\xeanio', to='convenios.Convenio', on_delete=models.CASCADE)), ], options={ @@ -95,8 +95,8 @@ class Migration(migrations.Migration): name='UnidadeAdministrativa', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('sigla', models.CharField(max_length=b'10')), - ('nome', models.CharField(max_length=b'100')), + ('sigla', models.CharField(max_length='10')), + ('nome', models.CharField(max_length='100')), ], options={ }, diff --git a/sigi/apps/convenios/migrations/0017_convenio_id_contrato_gescon.py b/sigi/apps/convenios/migrations/0017_convenio_id_contrato_gescon.py index 7619a1d..270e601 100644 --- a/sigi/apps/convenios/migrations/0017_convenio_id_contrato_gescon.py +++ b/sigi/apps/convenios/migrations/0017_convenio_id_contrato_gescon.py @@ -13,7 +13,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='convenio', name='id_contrato_gescon', - field=models.CharField(default=b'', verbose_name='ID do contrato no Gescon', max_length=20, editable=False, blank=True), + field=models.CharField(default='', verbose_name='ID do contrato no Gescon', max_length=20, editable=False, blank=True), preserve_default=True, ), ] diff --git a/sigi/apps/eventos/migrations/0001_initial.py b/sigi/apps/eventos/migrations/0001_initial.py index f841628..0e07be4 100644 --- a/sigi/apps/eventos/migrations/0001_initial.py +++ b/sigi/apps/eventos/migrations/0001_initial.py @@ -53,7 +53,7 @@ class Migration(migrations.Migration): ('data_termino', models.DateField(verbose_name='Data de t\xe9rmino')), ('local', models.TextField(verbose_name='Local do evento', blank=True)), ('publico_alvo', models.TextField(verbose_name='P\xfablico alvo', blank=True)), - ('status', models.CharField(max_length=1, verbose_name='Status', choices=[(b'P', 'Previs\xe3o'), (b'A', 'A confirmar'), (b'O', 'Confirmado'), (b'R', 'Realizado'), (b'C', 'Cancelado')])), + ('status', models.CharField(max_length=1, verbose_name='Status', choices=[('P', 'Previs\xe3o'), ('A', 'A confirmar'), ('O', 'Confirmado'), ('R', 'Realizado'), ('C', 'Cancelado')])), ('data_cancelamento', models.DateField(null=True, verbose_name='Data de cancelamento', blank=True)), ('motivo_cancelamento', models.TextField(verbose_name='Motivo do cancelamento', blank=True)), ('casa_anfitria', models.ForeignKey(verbose_name='Casa anfitri\xe3', blank=True, to='casas.CasaLegislativa', null=True, on_delete=models.CASCADE)), diff --git a/sigi/apps/eventos/migrations/0009_tipoevento_categoria.py b/sigi/apps/eventos/migrations/0009_tipoevento_categoria.py index a81069b..89198bc 100644 --- a/sigi/apps/eventos/migrations/0009_tipoevento_categoria.py +++ b/sigi/apps/eventos/migrations/0009_tipoevento_categoria.py @@ -14,7 +14,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='tipoevento', name='categoria', - field=models.CharField(default='E', max_length=1, verbose_name='Categoaria', choices=[(b'C', 'Curso'), (b'E', 'Encontro'), (b'O', 'Oficina'), (b'S', 'Semin\xe1rio'), (b'V', 'Visita')]), + field=models.CharField(default='E', max_length=1, verbose_name='Categoaria', choices=[('C', 'Curso'), ('E', 'Encontro'), ('O', 'Oficina'), ('S', 'Semin\xe1rio'), ('V', 'Visita')]), preserve_default=False, ), ] diff --git a/sigi/apps/eventos/migrations/0010_modulo.py b/sigi/apps/eventos/migrations/0010_modulo.py index 41e4b98..7190464 100644 --- a/sigi/apps/eventos/migrations/0010_modulo.py +++ b/sigi/apps/eventos/migrations/0010_modulo.py @@ -19,7 +19,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('nome', models.CharField(max_length=100, verbose_name='Nome')), ('descricao', models.TextField(verbose_name='Descri\xe7\xe3o do m\xf3dulo')), - ('tipo', models.CharField(max_length=1, verbose_name='Tipo', choices=[(b'A', 'Aula'), (b'P', 'Palestra'), (b'R', 'Apresenta\xe7\xe3o')])), + ('tipo', models.CharField(max_length=1, verbose_name='Tipo', choices=[('A', 'Aula'), ('P', 'Palestra'), ('R', 'Apresenta\xe7\xe3o')])), ('inicio', models.DateTimeField(null=True, verbose_name='Data/hora de in\xedcio', blank=True)), ('termino', models.DateTimeField(null=True, verbose_name='Data/hora de t\xe9rmino', blank=True)), ('carga_horaria', models.PositiveIntegerField(default=0, verbose_name='carga hor\xe1ria')), diff --git a/sigi/apps/eventos/migrations/0013_modelodeclaracao.py b/sigi/apps/eventos/migrations/0013_modelodeclaracao.py index a8d9e4b..b3d11d6 100644 --- a/sigi/apps/eventos/migrations/0013_modelodeclaracao.py +++ b/sigi/apps/eventos/migrations/0013_modelodeclaracao.py @@ -17,7 +17,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('nome', models.CharField(max_length=100, verbose_name='Nome do modelo')), - ('formato', models.CharField(default=b'A4 portrait', max_length=30, verbose_name='Formato da p\xe1gina', choices=[(b'A4 portrait', 'A4 retrato'), (b'A4 landscape', 'A4 paisagem'), (b'letter portrait', 'Carta retrato'), (b'letter landscape', 'Carta paisagem')])), + ('formato', models.CharField(default='A4 portrait', max_length=30, verbose_name='Formato da p\xe1gina', choices=[('A4 portrait', 'A4 retrato'), ('A4 landscape', 'A4 paisagem'), ('letter portrait', 'Carta retrato'), ('letter landscape', 'Carta paisagem')])), ('margem', models.PositiveIntegerField(default=4, help_text='Margem da p\xe1gina em cent\xedmetros', verbose_name='Margem')), ('texto', tinymce.models.HTMLField(help_text='Use as seguintes marca\xe7\xf5es:', verbose_name='Texto da declara\xe7\xe3o')), ], diff --git a/sigi/apps/eventos/migrations/0015_anexo.py b/sigi/apps/eventos/migrations/0015_anexo.py index ac36e48..50b66b3 100644 --- a/sigi/apps/eventos/migrations/0015_anexo.py +++ b/sigi/apps/eventos/migrations/0015_anexo.py @@ -16,8 +16,8 @@ class Migration(migrations.Migration): name='Anexo', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('arquivo', models.FileField(max_length=500, upload_to=b'apps/eventos/anexo/arquivo')), - ('descricao', models.CharField(max_length=b'70', verbose_name='descri\xe7\xe3o')), + ('arquivo', models.FileField(max_length=500, upload_to='apps/eventos/anexo/arquivo')), + ('descricao', models.CharField(max_length='70', verbose_name='descri\xe7\xe3o')), ('data_pub', models.DateTimeField(default=datetime.datetime.now, verbose_name='data da publica\xe7\xe3o do anexo')), ('evento', models.ForeignKey(verbose_name='evento', to='eventos.Evento', on_delete=models.CASCADE)), ], diff --git a/sigi/apps/ocorrencias/migrations/0001_initial.py b/sigi/apps/ocorrencias/migrations/0001_initial.py index c6f0a63..8a3e8d2 100644 --- a/sigi/apps/ocorrencias/migrations/0001_initial.py +++ b/sigi/apps/ocorrencias/migrations/0001_initial.py @@ -16,8 +16,8 @@ class Migration(migrations.Migration): name='Anexo', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('arquivo', models.FileField(upload_to=b'apps/ocorrencia/anexo/arquivo', max_length=500, verbose_name='Arquivo anexado')), - ('descricao', models.CharField(max_length=b'70', verbose_name='descri\xe7\xe3o do anexo')), + ('arquivo', models.FileField(upload_to='apps/ocorrencia/anexo/arquivo', max_length=500, verbose_name='Arquivo anexado')), + ('descricao', models.CharField(max_length='70', verbose_name='descri\xe7\xe3o do anexo')), ('data_pub', models.DateTimeField(auto_now_add=True, verbose_name='data da publica\xe7\xe3o do anexo', null=True)), ], options={ diff --git a/sigi/apps/servicos/migrations/0001_initial.py b/sigi/apps/servicos/migrations/0001_initial.py index 9f8538a..9d2c183 100644 --- a/sigi/apps/servicos/migrations/0001_initial.py +++ b/sigi/apps/servicos/migrations/0001_initial.py @@ -71,8 +71,8 @@ class Migration(migrations.Migration): ('data_ultimo_uso', models.DateField(help_text='Data em que o servi\xe7o foi utilizado pela Casa Legislativa pela \xfaltima vez
N\xc3O \xc9 ATUALIZADO AUTOMATICAMENTE!', null=True, verbose_name='Data da \xfaltima utiliza\xe7\xe3o', blank=True)), ('erro_atualizacao', models.CharField(help_text='Erro ocorrido na \xfaltima tentativa de atualizar a data de \xfaltimo acesso', max_length=200, verbose_name='Erro na atualiza\xe7\xe3o', blank=True)), ('casa_legislativa', models.ForeignKey(verbose_name='Casa Legislativa', to='casas.CasaLegislativa', on_delete=models.CASCADE)), - ('contato_administrativo', models.ForeignKey(related_name=b'contato_administrativo', verbose_name='Contato administrativo', to='casas.Funcionario', on_delete=models.CASCADE)), - ('contato_tecnico', models.ForeignKey(related_name=b'contato_tecnico', verbose_name='Contato t\xe9cnico', to='casas.Funcionario', on_delete=models.CASCADE)), + ('contato_administrativo', models.ForeignKey(related_name='contato_administrativo', verbose_name='Contato administrativo', to='casas.Funcionario', on_delete=models.CASCADE)), + ('contato_tecnico', models.ForeignKey(related_name='contato_tecnico', verbose_name='Contato t\xe9cnico', to='casas.Funcionario', on_delete=models.CASCADE)), ], options={ }, @@ -95,7 +95,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('nome', models.CharField(max_length=60, verbose_name='Nome')), - ('sigla', models.CharField(max_length=b'12', verbose_name='Sigla')), + ('sigla', models.CharField(max_length='12', verbose_name='Sigla')), ('string_pesquisa', models.CharField(help_text='Sufixo para pesquisa RSS para averiguar a data da \xfaltima atualiza\xe7\xe3o do servi\xe7o', max_length=200, verbose_name='String de pesquisa', blank=True)), ('template_email_ativa', models.TextField(help_text='Use:
\n {url} para incluir a URL do servi\xe7o,
\n {senha} para incluir a senha inicial do servi\xe7o', verbose_name='Template de email de ativa\xe7\xe3o', blank=True)), ('template_email_altera', models.TextField(help_text='Use:
\n {url} para incluir a URL do servi\xe7o,
\n {senha} para incluir a senha inicial do servi\xe7o', verbose_name='Template de email de altera\xe7\xe3o', blank=True)), diff --git a/sigi/apps/servicos/migrations/0002_tiposervico_modo.py b/sigi/apps/servicos/migrations/0002_tiposervico_modo.py index 313d393..6dd0776 100644 --- a/sigi/apps/servicos/migrations/0002_tiposervico_modo.py +++ b/sigi/apps/servicos/migrations/0002_tiposervico_modo.py @@ -14,7 +14,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='tiposervico', name='modo', - field=models.CharField(default='H', max_length=1, verbose_name='Modo de presta\xe7\xe3o do servi\xe7o', choices=[(b'H', 'Hospedagem'), (b'R', 'Registro')]), + field=models.CharField(default='H', max_length=1, verbose_name='Modo de presta\xe7\xe3o do servi\xe7o', choices=[('H', 'Hospedagem'), ('R', 'Registro')]), preserve_default=False, ), ] diff --git a/sigi/apps/servicos/migrations/0008_auto_20210519_1117.py b/sigi/apps/servicos/migrations/0008_auto_20210519_1117.py index 9e153e6..885ee28 100644 --- a/sigi/apps/servicos/migrations/0008_auto_20210519_1117.py +++ b/sigi/apps/servicos/migrations/0008_auto_20210519_1117.py @@ -26,7 +26,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='tiposervico', name='modo', - field=models.CharField(max_length=1, verbose_name='modo de presta\xe7\xe3o do servi\xe7o', choices=[(b'H', 'Hospedagem'), (b'R', 'Registro')]), + field=models.CharField(max_length=1, verbose_name='modo de presta\xe7\xe3o do servi\xe7o', choices=[('H', 'Hospedagem'), ('R', 'Registro')]), preserve_default=True, ), migrations.AlterField( @@ -38,7 +38,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='tiposervico', name='sigla', - field=models.CharField(max_length=b'12', verbose_name='sigla'), + field=models.CharField(max_length='12', verbose_name='sigla'), preserve_default=True, ), migrations.AlterField( diff --git a/sigi/apps/servidores/migrations/0001_initial.py b/sigi/apps/servidores/migrations/0001_initial.py index edc31a1..94139df 100644 --- a/sigi/apps/servidores/migrations/0001_initial.py +++ b/sigi/apps/servidores/migrations/0001_initial.py @@ -35,8 +35,8 @@ class Migration(migrations.Migration): ('inicio_funcao', models.DateField(null=True, verbose_name='in\xedcio da fun\xe7\xe3o')), ('fim_funcao', models.DateField(null=True, verbose_name='fim da fun\xe7\xe3o', blank=True)), ('descricao', models.TextField(null=True, verbose_name='descri\xe7\xe3o', blank=True)), - ('bap_entrada', models.CharField(max_length=50, null=True, verbose_name=b'BAP de entrada', blank=True)), - ('data_bap_entrada', models.DateField(null=True, verbose_name=b'data BAP de entrada', blank=True)), + ('bap_entrada', models.CharField(max_length=50, null=True, verbose_name='BAP de entrada', blank=True)), + ('data_bap_entrada', models.DateField(null=True, verbose_name='data BAP de entrada', blank=True)), ('bap_saida', models.CharField(max_length=50, null=True, verbose_name='BAP de sa\xedda', blank=True)), ('data_bap_saida', models.DateField(null=True, verbose_name='data BAP de sa\xedda', blank=True)), ], @@ -80,22 +80,22 @@ class Migration(migrations.Migration): ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('nome_completo', models.CharField(max_length=128)), ('apelido', models.CharField(max_length=50, blank=True)), - ('foto', models.ImageField(height_field=b'foto_altura', width_field=b'foto_largura', upload_to=b'fotos/servidores', blank=True)), + ('foto', models.ImageField(height_field='foto_altura', width_field='foto_largura', upload_to='fotos/servidores', blank=True)), ('foto_largura', models.SmallIntegerField(null=True, editable=False)), ('foto_altura', models.SmallIntegerField(null=True, editable=False)), - ('sexo', models.CharField(blank=True, max_length=1, null=True, choices=[(b'M', 'Masculino'), (b'F', 'Feminino')])), - ('data_nascimento', models.DateField(null=True, verbose_name=b'data de nascimento', blank=True)), + ('sexo', models.CharField(blank=True, max_length=1, null=True, choices=[('M', 'Masculino'), ('F', 'Feminino')])), + ('data_nascimento', models.DateField(null=True, verbose_name='data de nascimento', blank=True)), ('matricula', models.CharField(max_length=25, null=True, verbose_name='matr\xedcula', blank=True)), - ('turno', models.CharField(blank=True, max_length=1, null=True, choices=[(b'M', 'Manh\xe3'), (b'T', 'Tarde'), (b'N', 'Noite')])), + ('turno', models.CharField(blank=True, max_length=1, null=True, choices=[('M', 'Manh\xe3'), ('T', 'Tarde'), ('N', 'Noite')])), ('de_fora', models.BooleanField(default=False)), ('data_nomeacao', models.DateField(null=True, verbose_name='data de nomea\xe7\xe3o', blank=True)), ('ato_exoneracao', models.CharField(max_length=150, null=True, verbose_name='ato de exonera\xe7\xe3o', blank=True)), ('ato_numero', models.CharField(max_length=150, null=True, verbose_name='ato de exonera\xe7\xe3o', blank=True)), - ('cpf', models.CharField(max_length=11, null=True, verbose_name=b'CPF', blank=True)), - ('rg', models.CharField(max_length=25, null=True, verbose_name=b'RG', blank=True)), + ('cpf', models.CharField(max_length=11, null=True, verbose_name='CPF', blank=True)), + ('rg', models.CharField(max_length=25, null=True, verbose_name='RG', blank=True)), ('obs', models.TextField(null=True, verbose_name='observa\xe7\xe3o', blank=True)), ('apontamentos', models.TextField(null=True, verbose_name='apontamentos', blank=True)), - ('email_pessoal', models.EmailField(max_length=75, null=True, verbose_name=b'email pessoal', blank=True)), + ('email_pessoal', models.EmailField(max_length=75, null=True, verbose_name='email pessoal', blank=True)), ('ramal', models.CharField(max_length=25, null=True, blank=True)), ('servico', models.ForeignKey(blank=True, to='servidores.Servico', null=True, on_delete=models.CASCADE)), ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, unique=True, on_delete=models.CASCADE)), @@ -112,7 +112,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('nome', models.CharField(max_length=250, null=True)), ('sigla', models.CharField(max_length=10, null=True)), - ('responsavel', models.ForeignKey(related_name=b'diretor', to='servidores.Servidor', null=True, on_delete=models.CASCADE)), + ('responsavel', models.ForeignKey(related_name='diretor', to='servidores.Servidor', null=True, on_delete=models.CASCADE)), ], options={ 'ordering': ('nome',), @@ -122,7 +122,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='servico', name='responsavel', - field=models.ForeignKey(related_name=b'chefe', to='servidores.Servidor', null=True, on_delete=models.CASCADE), + field=models.ForeignKey(related_name='chefe', to='servidores.Servidor', null=True, on_delete=models.CASCADE), preserve_default=True, ), migrations.AddField(