Django

Code

Ticket #2095 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: Matias Hermanrud Fjeld <mhf@hex.no> Assigned to: adrian
Milestone: Component: Core framework
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

choices.diff (0.8 kB) - added by Matias Hermanrud Fjeld on 06/06/06 05:33:17.

Change History

06/06/06 05:33:17 changed by Matias Hermanrud Fjeld

  • attachment choices.diff added.

06/06/06 21:46:08 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #2095 ([patch] allow choices to be any sequence, not just tuple or list)




Change Properties
Action