Skip to content

Commit

Permalink
fixup! Customise Dummy PostElection
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed May 23, 2024
1 parent 41eeaad commit 64ffe24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wcivf/apps/elections/dummy_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ class DummyPostElection(PostElection):
display_as_party_list = False
locked = True
voting_system_id = "FPTP"
ballot_paper_id = "local.faketown.made-up-ward.2024-05-31"
ballot_paper_id = "local.faketown.made-up-ward.2024-07-04"
cancelled = False
show_polling_card = True
contested = True
requires_voter_id = "EA-2022"

election = Election(
name="Llantalbot local election",
election_date=date(2024, 5, 31),
election_date=date(2024, 7, 4),
any_non_by_elections=True,
slug="local.faketown.2024-05-31",
slug="local.faketown.2024-07-04",
voting_system=VotingSystem(slug="FPTP"),
current=True,
)
Expand All @@ -34,7 +34,7 @@ class Meta:

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.ballot_paper_id = "local.faketown.made-up-ward.2024-05-31"
self.ballot_paper_id = "local.faketown.made-up-ward.2024-07-04"
self.election.get_absolute_url = self.election_get_absolute_url

def election_get_absolute_url(self):
Expand Down

0 comments on commit 64ffe24

Please sign in to comment.