Skip to content

Commit

Permalink
feat: add migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelzinh3 committed Nov 10, 2023
1 parent f47829b commit 1414d44
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions app/eleicao/migrations/0018_eleicaocandidatelist.py
Original file line number Diff line number Diff line change
@@ -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',),
),
]

0 comments on commit 1414d44

Please sign in to comment.