How to create parameter option to permit "majority judgment" poll
Create a parameter on package to opt between different poll types (for now: classic & majority judgment).
And maybe to add parametrable choices to majority judgment
I have two main ideas:
- Create parameters in settings.yml
POLL_TYPE: 'jugement_majoritaire'
DEFAULT_POLL_OPTIONS: 'À rejeter/À revoir/Moyen/Bien/Très bien'
And then get these parameters at the poll creation like this poll_type = getattr(settings, 'POLL_TYPE', 'classic')
- For the default poll options, I can also create a boolean 'bydefault' field parameters on PollOptions that can save the default options