forked from benadida/helios-server
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extend send_voter_sms management command
introduce ``--voters-mobile-file`` parameter. Accepts a path to a csv file containing a list of election voter mobiles number in the following format, <voter-id>,<email>,<mobile> if set, the script will validate the contents of the file and send sms only to the voters extracted from the csv entries. The mobile number provided in csv file will be used to deliver the sms message.
- Loading branch information
Showing
5 changed files
with
92 additions
and
12 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ZEUS ELECTION {{ election.name|truncatechars:10 }}: VOTER WITH REG CODE {{ voter.voter_login_id }} | ||
{% if voter.voted %}VOTED {{ voter.cast_votes.count }} TIMES. LAST VOTE AT {{ voter.last_cast_vote.cast_at|date:"d/n/Y H:i:s" }}{% else %}NO VOTE CAST{% endif %} |
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