Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#2095 closed enhancement (fixed)

[patch] allow choices to be any sequence, not just tuple or list

Reported by: Matias Hermanrud Fjeld <mhf@…> Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: trivial Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


This patch allows the 'choices' property on fields to be any sequence, not just a tuple or list. Useful for creating choices on-the-fly.

Attachments (1)

choices.diff (836 bytes) - added by Matias Hermanrud Fjeld 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by Matias Hermanrud Fjeld

Attachment: choices.diff added

comment:1 Changed 13 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [3094]) Fixed #1697 and #2095 -- Made 'choices' parameter accept any iterable

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