From 1414d44216a36908a2b9e138b5b56f27a21c258c Mon Sep 17 00:00:00 2001 From: miguelzinh3 Date: Fri, 10 Nov 2023 19:09:02 -0300 Subject: [PATCH] feat: add migrations --- .../migrations/0018_eleicaocandidatelist.py | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 app/eleicao/migrations/0018_eleicaocandidatelist.py diff --git a/app/eleicao/migrations/0018_eleicaocandidatelist.py b/app/eleicao/migrations/0018_eleicaocandidatelist.py new file mode 100644 index 00000000..27cba973 --- /dev/null +++ b/app/eleicao/migrations/0018_eleicaocandidatelist.py @@ -0,0 +1,27 @@ +# Generated by Django 3.2 on 2023-11-10 22:07 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('cms', '0022_auto_20180620_1551'), + ('eleicao', '0017_voterformpluginmodel'), + ] + + operations = [ + migrations.CreateModel( + name='EleicaoCandidateList', + fields=[ + ('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='eleicao_eleicaocandidatelist', serialize=False, to='cms.cmsplugin')), + ('city', models.CharField(blank=True, max_length=120, null=True, verbose_name='Cidade')), + ('state', models.CharField(blank=True, choices=[('AC', 'Acre'), ('AL', 'Alagoas'), ('AM', 'Amazonas'), ('AP', 'Amapá'), ('BA', 'Bahia'), ('CE', 'Ceará'), ('DF', 'Distrito Federal'), ('ES', 'Espírito Santo'), ('GO', 'Goiás'), ('MA', 'Maranhão'), ('MG', 'Minas Gerais'), ('MS', 'Mato Grosso do Sul'), ('MT', 'Mato Grosso'), ('PA', 'Pará'), ('PB', 'Paraíba'), ('PE', 'Pernambuco'), ('PI', 'Piauí'), ('PR', 'Paraná'), ('RJ', 'Rio de Janeiro'), ('RN', 'Rio Grande do Norte'), ('RO', 'Rondônia'), ('RR', 'Roraima'), ('RS', 'Rio Grande do Sul'), ('SC', 'Santa Catarina'), ('SE', 'Sergipe'), ('SP', 'São Paulo'), ('TO', 'Tocantins')], max_length=2, null=True, verbose_name='Estado')), + ], + options={ + 'abstract': False, + }, + bases=('cms.cmsplugin',), + ), + ]