Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For a select_multiple question allow only a maximum number of answers. #124

Open
gjelsas opened this issue Feb 1, 2021 · 1 comment
Open
Labels
enhancement This is a feature not a bug good-first-issue This issue is doable without a deep understanding of the project hacktoberfest

Comments

@gjelsas
Copy link

gjelsas commented Feb 1, 2021

I'm looking at your code an trying to implement a select_multiple question, where you could select, lets say, three out of four choices. Could you point me to where in the code that could be implemented? @Pierre-Sassoulas

@Pierre-Sassoulas
Copy link
Owner

In model it's defined here: https://github.com/Pierre-Sassoulas/django-survey/blob/master/survey/models/question.py#L57
In form it's here: https://github.com/Pierre-Sassoulas/django-survey/blob/master/survey/forms.py#L24

It's probably possible to override the default class from Django :)

@Pierre-Sassoulas Pierre-Sassoulas self-assigned this Feb 2, 2021
@Pierre-Sassoulas Pierre-Sassoulas added question enhancement This is a feature not a bug labels Feb 2, 2021
@Pierre-Sassoulas Pierre-Sassoulas removed their assignment Feb 2, 2021
@Pierre-Sassoulas Pierre-Sassoulas added good-first-issue This issue is doable without a deep understanding of the project and removed question labels Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is a feature not a bug good-first-issue This issue is doable without a deep understanding of the project hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants