One of the things I was hoping for in newforms but haven't found is a
way to do a composite form field that uses multiple elements
that reduce to a single python object. E.g.,
>>> class MyForm(Form):
... postdate = CompositeField(ChoiceField(choices=['Jan', ...]),
...
On 12/9/06, Brian Victor <[EMAIL PROTECTED]> wrote:
One of the things I was hoping for in newforms but haven't found is a
way to do a composite form field that uses multiple elements
that reduce to a single python object. E.g.,
>>> class MyForm(Form):
... postdate = CompositeField(ChoiceF
Adrian I have been experimenting with the SelectDateWidget and I have
noticed one bit of strange behavior. Wondering if I'm using it
incorrectly.
My original element in the form class is this:
date_opened = forms.DateField(initial=date.today())
This works as expected and if the data supplied
On 1/3/07, gordyt <[EMAIL PROTECTED]> wrote:
date_opened = forms.DateField(
initial=date.today(),widget=SelectDateWidget)
This does render the composite widget just fine, but it will not use a
date_opened value that is supplied with the form class is instantiated
and so displays the error s
Adrian Holovaty wrote:
> On 12/9/06, Brian Victor <[EMAIL PROTECTED]> wrote:
>> One of the things I was hoping for in newforms but haven't found is a
>> way to do a composite form field that uses multiple elements
>> that reduce to a single python object. E.g.,
[snip]
>> Is there a way to obtain
On 12/17/06, Brian Victor <[EMAIL PROTECTED]> wrote:
> Adrian Holovaty wrote:
> > On 12/9/06, Brian Victor <[EMAIL PROTECTED]> wrote:
> >> One of the things I was hoping for in newforms but haven't found is a
> >> way to do a composite form field that uses multiple elements
> >> that reduce to a
6 matches
Mail list logo