-
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.
feat(vote): Created a election status model
- Loading branch information
1 parent
601d4f2
commit ad0ec16
Showing
3 changed files
with
33 additions
and
32 deletions.
There are no files selected for viewing
23 changes: 0 additions & 23 deletions
23
...leicoes/votepeloclima/candidature/migrations/0023_candidature_election_status_and_more.py
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
app/org_eleicoes/votepeloclima/candidature/migrations/0023_electionresult.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,23 @@ | ||
# Generated by Django 4.2 on 2024-10-07 22:04 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('candidature', '0022_alter_candidature_ballot_name_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ElectionResult', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('year', models.PositiveIntegerField(verbose_name='Ano da eleição')), | ||
('status', models.CharField(choices=[('eleita', 'Eleita/o'), ('segundo_turno', 'Segundo Turno'), ('nao_eleito', 'Não Eleita/o')], max_length=20, verbose_name='Status da eleição')), | ||
('candidature', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='election_results', to='candidature.candidature')), | ||
], | ||
), | ||
] |
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