Re: Why is (db) Field.form_class hardcoded to TypedChoiceField if field has choices?

2009-06-25 Thread Flo Ledermann
I am sorry folks, I just found the corresponding issue: http://code.djangoproject.com/ticket/9245 however, i would still be interested in discussing the reasons behind this - and why the patch provided in the ticket did't get applied yet ;) flo

Why is (db) Field.form_class hardcoded to TypedChoiceField if field has choices?

2009-06-25 Thread Flo Ledermann
Hi all, I am trying to implement a "FlagField" that can be used to store binary flags in a single integer value in the DB. The approach that looks most promising is subclassing Integer Field, pass in some choices as possible flags (which will be internally converted into the appropriate