summaryrefslogtreecommitdiff
path: root/postgresqleu/elections/models.py
AgeCommit message (Collapse)Author
2024-03-20Add an "intro" field to electionsMagnus Hagander
This field (which can take markdown for nice formatting) is shown on the voting form for the election, and can contain overview information about the election, candidates etc. Suggested by Matthias van de Meent
2022-06-20Prettify date field names in backendMagnus Hagander
2022-06-20Change elections concept of "is open" to "is active"Magnus Hagander
That's really what it's meant, because the boolean already controlled other things than voting -- such as the important "any results shown at all". Voting is controlled by the combination of this field and the dates, so rename it for clarity.
2019-07-10Ensure email addresses are lowercase throughoutMagnus Hagander
At least all email addresses being input by end users should be confverted to lowercase to avoid duplicates. Update existing users, registrations and election candidates to be lowercase, and add constraints to them For things like conference contract addresses that are only set by superusers, we skip the constraints part and let the user take some more responsibility.
2019-01-10Replace __unicode__ with __str__Magnus Hagander
2to3 doesn't do this automatically, probably because weird things can happen if you had both. We know we didn't, so just do a straight replacement.
2018-12-16Add backend editors for elections and candidatesMagnus Hagander
2018-12-14Fix blankline related warningsMagnus Hagander
2018-12-14Replace tabs with spacesMagnus Hagander
In an effort to close up with PEP8, we should use spaces for indent rather than tabs... Time to update your editor config!
2018-09-07Specify on_delete parameter for all ForeignKeysVik Fearing
This will be required in future Django versions, and currently throws deprecation warnings.
2010-04-13Initial version of election management software.Magnus Hagander
Not yet linked in anywhere, so we can test it properly first.