Opened 19 years ago

Closed 19 years ago

Last modified 18 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

Description

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 19 years ago.

Download all attachments as: .zip

Change History (2)

by Matias Hermanrud Fjeld, 19 years ago

Attachment: choices.diff added

comment:1 by Adrian Holovaty, 19 years ago

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