Opened 7 years ago

Last modified 7 years ago

#28467 closed Cleanup/optimization

Missing real MultiValueField - MultiValueField is actually a MultiField — at Initial Version

Reported by: Sven R. Kunze Owned by: nobody
Component: Forms Version: 1.11
Severity: Normal Keywords: MultiValueField MultiField
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hey everybody,

I need a MultiValueField because I have a field which can carry 10 integers, or another field with can carry 20 dates. The count of values is not fixed, just examples here.

So, I was quite enthusiastic to see that Django features a MultiValueField. Unfortunately, it turned out to be a MultiField (a field encompassing multiple fields) but not a real MultiValueField (a field encompassing multiple values).

Would it be possible to

1) rename MultiValueField
2) add a real MultiValueField which just wraps an arbitrary form field and produces a field which could valid a numbers of input values

?

Regards,
Sven

PS: No, I don't need a MultipeChoiceField because choices comprises of all integers or all dates, so choices would be rather huge (infinite). Same for TypedMultipeChoiceField.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top