Opened 13 years ago

Closed 13 years ago

#10366 closed (wontfix)

model for MultipleChoiceField

Reported by: tangc Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Keywords: Field choices
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Ref: db/models/fields/

class Field(object) has init with choices=None. It would be good to have a multi_choices=None

def formfield has code form_class = forms.TypedChoiceField . So It would be like the follows:

            if self.multi_choices:
                form_class = forms.MultipleChoiceField
                form_class = forms.TypedChoiceField

The minimum code change can deal with model to form with MultipleChoiceField. It worked nicely.

Attachments (1)

T10366.diff (1.4 KB) - added by tangc 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by tangc

Attachment: T10366.diff added

comment:1 Changed 13 years ago by Alex Gaynor

Resolution: wontfix
Status: newclosed

There is no model field that actually stores data in a list like this, marking as wonfix.

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