-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2936 from prefeiturasp/release/9.5.0
Release/9.5.0
- Loading branch information
Showing
35 changed files
with
682 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "9.4.0" | ||
__version__ = "9.5.0" | ||
|
||
__version_info__ = tuple( | ||
[ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
from rest_framework import serializers | ||
|
||
from sme_ptrf_apps.core.models import Arquivo | ||
from sme_ptrf_apps.core.models.periodo import Periodo | ||
|
||
|
||
class ArquivoSerializer(serializers.ModelSerializer): | ||
|
||
periodo = serializers.SlugRelatedField( | ||
slug_field='uuid', | ||
required=False, | ||
queryset=Periodo.objects.all() | ||
) | ||
class Meta: | ||
model = Arquivo | ||
fields = '__all__' | ||
fields = '__all__' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
sme_ptrf_apps/core/migrations/0390_arquivo_periodo_arquivo_requer_periodo.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 4.2.7 on 2024-05-15 08:09 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0389_migrar_campo_pdf_gerado_previamente"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="arquivo", | ||
name="periodo", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="Período associado ao arquivo (opcional)", | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
to="core.periodo", | ||
verbose_name="Período", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="arquivo", | ||
name="requer_periodo", | ||
field=models.BooleanField( | ||
choices=[(True, "Sim"), (False, "Não")], | ||
default=False, | ||
help_text="Indica se o tipo de carga requer um período", | ||
verbose_name="Requer período", | ||
), | ||
), | ||
] |
16 changes: 16 additions & 0 deletions
16
sme_ptrf_apps/core/migrations/0391_remove_arquivo_requer_periodo.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Generated by Django 4.2.7 on 2024-05-15 10:32 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0390_arquivo_periodo_arquivo_requer_periodo"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="arquivo", | ||
name="requer_periodo", | ||
), | ||
] |
59 changes: 59 additions & 0 deletions
59
sme_ptrf_apps/core/migrations/0392_alter_arquivo_tipo_carga_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Generated by Django 4.2.7 on 2024-05-15 11:18 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0391_remove_arquivo_requer_periodo"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="arquivo", | ||
name="tipo_carga", | ||
field=models.CharField( | ||
choices=[ | ||
("CARGA_REPASSE_REALIZADO", "Repasses realizados"), | ||
("CARGA_PERIODO_INICIAL", "Carga período inicial"), | ||
("CARGA_REPASSE_PREVISTO", "Repasses previstos"), | ||
("CARGA_ASSOCIACOES", "Carga de Associações"), | ||
("CARGA_USUARIOS", "Carga de usuários"), | ||
("CARGA_CENSO", "Carga de censo"), | ||
("CARGA_REPASSE_PREVISTO_SME", "Repasses previstos sme"), | ||
("CARGA_DEVOLUCAO_TESOURO", "Devoluções ao Tesouro"), | ||
( | ||
"CARGA_MATERIAIS_SERVICOS", | ||
"Especificações de Materiais e Serviços", | ||
), | ||
], | ||
default="CARGA_REPASSE_REALIZADO", | ||
max_length=35, | ||
verbose_name="tipo de carga", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="modelocarga", | ||
name="tipo_carga", | ||
field=models.CharField( | ||
choices=[ | ||
("CARGA_REPASSE_REALIZADO", "Repasses realizados"), | ||
("CARGA_PERIODO_INICIAL", "Carga período inicial"), | ||
("CARGA_REPASSE_PREVISTO", "Repasses previstos"), | ||
("CARGA_ASSOCIACOES", "Carga de Associações"), | ||
("CARGA_USUARIOS", "Carga de usuários"), | ||
("CARGA_CENSO", "Carga de censo"), | ||
("CARGA_REPASSE_PREVISTO_SME", "Repasses previstos sme"), | ||
("CARGA_DEVOLUCAO_TESOURO", "Devoluções ao Tesouro"), | ||
( | ||
"CARGA_MATERIAIS_SERVICOS", | ||
"Especificações de Materiais e Serviços", | ||
), | ||
], | ||
default="CARGA_ASSOCIACOES", | ||
max_length=35, | ||
unique=True, | ||
verbose_name="tipo de carga", | ||
), | ||
), | ||
] |
59 changes: 59 additions & 0 deletions
59
sme_ptrf_apps/core/migrations/0393_alter_arquivo_tipo_carga_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Generated by Django 4.2.7 on 2024-05-15 11:28 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0392_alter_arquivo_tipo_carga_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="arquivo", | ||
name="tipo_carga", | ||
field=models.CharField( | ||
choices=[ | ||
("REPASSE_REALIZADO", "Repasses realizados"), | ||
("CARGA_PERIODO_INICIAL", "Carga período inicial"), | ||
("REPASSE_PREVISTO", "Repasses previstos"), | ||
("CARGA_ASSOCIACOES", "Carga de Associações"), | ||
("CARGA_USUARIOS", "Carga de usuários"), | ||
("CARGA_CENSO", "Carga de censo"), | ||
("CARGA_REPASSE_PREVISTO_SME", "Repasses previstos sme"), | ||
("CARGA_DEVOLUCAO_TESOURO", "Devoluções ao Tesouro"), | ||
( | ||
"CARGA_MATERIAIS_SERVICOS", | ||
"Especificações de Materiais e Serviços", | ||
), | ||
], | ||
default="REPASSE_REALIZADO", | ||
max_length=35, | ||
verbose_name="tipo de carga", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="modelocarga", | ||
name="tipo_carga", | ||
field=models.CharField( | ||
choices=[ | ||
("REPASSE_REALIZADO", "Repasses realizados"), | ||
("CARGA_PERIODO_INICIAL", "Carga período inicial"), | ||
("REPASSE_PREVISTO", "Repasses previstos"), | ||
("CARGA_ASSOCIACOES", "Carga de Associações"), | ||
("CARGA_USUARIOS", "Carga de usuários"), | ||
("CARGA_CENSO", "Carga de censo"), | ||
("CARGA_REPASSE_PREVISTO_SME", "Repasses previstos sme"), | ||
("CARGA_DEVOLUCAO_TESOURO", "Devoluções ao Tesouro"), | ||
( | ||
"CARGA_MATERIAIS_SERVICOS", | ||
"Especificações de Materiais e Serviços", | ||
), | ||
], | ||
default="CARGA_ASSOCIACOES", | ||
max_length=35, | ||
unique=True, | ||
verbose_name="tipo de carga", | ||
), | ||
), | ||
] |
25 changes: 25 additions & 0 deletions
25
sme_ptrf_apps/core/migrations/0394_alter_arquivo_periodo.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 4.2.7 on 2024-05-15 16:28 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0393_alter_arquivo_tipo_carga_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="arquivo", | ||
name="periodo", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="Período associado ao arquivo (opcional dependendo do tipo de carga)", | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
to="core.periodo", | ||
verbose_name="Período", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.