-
Notifications
You must be signed in to change notification settings - Fork 32
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 #1686 from DemocracyClub/feature/cancellation-reason
Feature/cancellation reason
- Loading branch information
Showing
6 changed files
with
204 additions
and
105 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
31 changes: 31 additions & 0 deletions
31
wcivf/apps/elections/migrations/0042_postelection_cancellation_reason.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,31 @@ | ||
# Generated by Django 4.2.3 on 2023-09-26 11:59 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
( | ||
"elections", | ||
"0041_election_ballot_papers_issued_election_electorate_and_more", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="postelection", | ||
name="cancellation_reason", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("NO_CANDIDATES", "No candidates"), | ||
("EQUAL_CANDIDATES", "Equal candidates to seats"), | ||
("UNDER_CONTESTED", "Fewer candidates than seats"), | ||
("CANDIDATE_DEATH", "Death of a candidate"), | ||
], | ||
default=None, | ||
max_length=16, | ||
null=True, | ||
), | ||
), | ||
] |
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.