-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-> modified: docs/instalacao.rst -> new file: saap/cerimonial/migrations/0079_auto_20201203_1919.py -> new file: saap/cerimonial/migrations/0080_auto_20201203_1926.py -> modified: saap/cerimonial/models.py -> new file: saap/core/migrations/0026_auto_20201203_1919.py -> new file: saap/core/migrations/0027_auto_20201203_1926.py Correção do banco para não ter município/estado default. Isso causava problemas na instalação nova.
- Loading branch information
1 parent
b1246f1
commit 6009767
Showing
6 changed files
with
177 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.13 on 2020-12-03 22:19 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations | ||
import django.db.models.deletion | ||
import smart_selects.db_fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('cerimonial', '0078_auto_20200915_1336'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='endereco', | ||
name='municipio', | ||
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, chained_field='estado', chained_model_field='estado', default=4891, on_delete=django.db.models.deletion.CASCADE, related_name='endereco_set', to='core.Municipio', verbose_name='Município'), | ||
), | ||
migrations.AlterField( | ||
model_name='localtrabalho', | ||
name='municipio', | ||
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, blank=True, chained_field='estado', chained_model_field='estado', default=4891, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.Municipio', verbose_name='Município'), | ||
), | ||
] |
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,42 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.13 on 2020-12-03 22:26 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import smart_selects.db_fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('cerimonial', '0079_auto_20201203_1919'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='contato', | ||
name='estado', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='contato_set', to='core.Estado', verbose_name='Estado de nascimento'), | ||
), | ||
migrations.AlterField( | ||
model_name='endereco', | ||
name='estado', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='endereco_set', to='core.Estado', verbose_name='Estado'), | ||
), | ||
migrations.AlterField( | ||
model_name='endereco', | ||
name='municipio', | ||
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, chained_field='estado', chained_model_field='estado', on_delete=django.db.models.deletion.CASCADE, related_name='endereco_set', to='core.Municipio', verbose_name='Município'), | ||
), | ||
migrations.AlterField( | ||
model_name='localtrabalho', | ||
name='estado', | ||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='localtrabalho_set', to='core.Estado', verbose_name='Estado'), | ||
), | ||
migrations.AlterField( | ||
model_name='localtrabalho', | ||
name='municipio', | ||
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, blank=True, chained_field='estado', chained_model_field='estado', null=True, on_delete=django.db.models.deletion.CASCADE, to='core.Municipio', verbose_name='Município'), | ||
), | ||
] |
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.13 on 2020-12-03 22:19 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import smart_selects.db_fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0025_auto_20201105_1757'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='bairro', | ||
name='estado', | ||
field=models.ForeignKey(default=21, on_delete=django.db.models.deletion.CASCADE, to='core.Estado', verbose_name='Estado'), | ||
), | ||
migrations.AlterField( | ||
model_name='bairro', | ||
name='municipio', | ||
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, chained_field='estado', chained_model_field='estado', default=4891, on_delete=django.db.models.deletion.CASCADE, to='core.Municipio', verbose_name='Município'), | ||
), | ||
migrations.AlterField( | ||
model_name='distrito', | ||
name='estado', | ||
field=models.ForeignKey(default=21, on_delete=django.db.models.deletion.CASCADE, to='core.Estado', verbose_name='Estado'), | ||
), | ||
migrations.AlterField( | ||
model_name='distrito', | ||
name='municipio', | ||
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, chained_field='estado', chained_model_field='estado', default=4891, on_delete=django.db.models.deletion.CASCADE, to='core.Municipio', verbose_name='Município'), | ||
), | ||
migrations.AlterField( | ||
model_name='municipio', | ||
name='estado', | ||
field=models.ForeignKey(default=21, on_delete=django.db.models.deletion.CASCADE, related_name='municipios_set', to='core.Estado', verbose_name='Estado'), | ||
), | ||
migrations.AlterField( | ||
model_name='regiaomunicipal', | ||
name='estado', | ||
field=models.ForeignKey(default=21, on_delete=django.db.models.deletion.CASCADE, to='core.Estado', verbose_name='Estado'), | ||
), | ||
migrations.AlterField( | ||
model_name='regiaomunicipal', | ||
name='municipio', | ||
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, chained_field='estado', chained_model_field='estado', default=4891, on_delete=django.db.models.deletion.CASCADE, to='core.Municipio', verbose_name='Município'), | ||
), | ||
] |
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,52 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9.13 on 2020-12-03 22:26 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import smart_selects.db_fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0026_auto_20201203_1919'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='bairro', | ||
name='estado', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Estado', verbose_name='Estado'), | ||
), | ||
migrations.AlterField( | ||
model_name='bairro', | ||
name='municipio', | ||
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, chained_field='estado', chained_model_field='estado', on_delete=django.db.models.deletion.CASCADE, to='core.Municipio', verbose_name='Município'), | ||
), | ||
migrations.AlterField( | ||
model_name='distrito', | ||
name='estado', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Estado', verbose_name='Estado'), | ||
), | ||
migrations.AlterField( | ||
model_name='distrito', | ||
name='municipio', | ||
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, chained_field='estado', chained_model_field='estado', on_delete=django.db.models.deletion.CASCADE, to='core.Municipio', verbose_name='Município'), | ||
), | ||
migrations.AlterField( | ||
model_name='municipio', | ||
name='estado', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='municipios_set', to='core.Estado', verbose_name='Estado'), | ||
), | ||
migrations.AlterField( | ||
model_name='regiaomunicipal', | ||
name='estado', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Estado', verbose_name='Estado'), | ||
), | ||
migrations.AlterField( | ||
model_name='regiaomunicipal', | ||
name='municipio', | ||
field=smart_selects.db_fields.ChainedForeignKey(auto_choose=True, chained_field='estado', chained_model_field='estado', on_delete=django.db.models.deletion.CASCADE, to='core.Municipio', verbose_name='Município'), | ||
), | ||
] |