[Django] #34836: Add an optional argument to MultipleChoiceField to ignore invalid choices.

3 views
Skip to first unread message

Django

unread,
Sep 13, 2023, 7:15:24 AM9/13/23
to django-...@googlegroups.com
#34836: Add an optional argument to MultipleChoiceField to ignore invalid choices.
---------------------------------------+------------------------
Reporter: andvodka | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: 4.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
---------------------------------------+------------------------
I want to ignore invalid choices without displaying an error.
The same goes for ModelMultipleChoiceField.

--
Ticket URL: <https://code.djangoproject.com/ticket/34836>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 13, 2023, 7:48:23 AM9/13/23
to django-...@googlegroups.com
#34836: Add an optional argument to MultipleChoiceField to ignore invalid choices.
-----------------------------+--------------------------------------
Reporter: andvodka | Owner: nobody
Type: New feature | Status: closed
Component: Forms | Version: 4.2
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* has_patch: 1 => 0
* resolution: => wontfix
* easy: 1 => 0


Comment:

Thanks for this ticket, however, it doesn't sound like common practice and
something that needs to be a part of Django itself. You can always
implement a `MultipleChoiceField` subclass in your code.

You can start a discussion on the Django Forum, if you don't agree, where
you'll reach a wider audience, and
[https://docs.djangoproject.com/en/stable/internals/contributing/triaging-
tickets/#closing-tickets follow the triaging guidelines with regards to
wontfix tickets].

--
Ticket URL: <https://code.djangoproject.com/ticket/34836#comment:1>

Django

unread,
Sep 13, 2023, 7:53:14 AM9/13/23
to django-...@googlegroups.com
#34836: Add an optional argument to MultipleChoiceField to ignore invalid choices.
-----------------------------+--------------------------------------
Reporter: andvodka | Owner: nobody
Type: New feature | Status: closed
Component: Forms | Version: 4.2
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Description changed by andvodka:

Old description:

> I want to ignore invalid choices without displaying an error.
> The same goes for ModelMultipleChoiceField.

New description:

I want to ignore invalid choices without displaying an error.
The same goes for ModelMultipleChoiceField.

PR (created without accepted ticket)
https://github.com/django/django/pull/17255

--

--
Ticket URL: <https://code.djangoproject.com/ticket/34836#comment:2>

Reply all
Reply to author
Forward
0 new messages