Thanks Guille, that looks like it will do what I want, but I just
realized I have another, different, problem.
--
mthorley
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
Hi,
The prepare is actually a method of Manipulator that calls the prepare
method in each of the fields.
So you might want to call it from the Manipulator.save() method. Or in
the html2python by overiding it, calling first self.prepare() and then
Method.html2Python(self). But I'm just guessing,
I've run into a similar problem witha a custom field I am developing
that is, in-part, based off of CheckboxSelectMultipleField. Do you know
if there is any way to automate the call of prepare?
--
mthorley
--~--~-~--~~~---~--~~
You received this message because y
Cheers,
After a lot of trial-and-error and some source reading, an answer to
my own post:
In order to use a CheckboxSelectMultipleField as a SelectMultipleField
you must prepare the data before :-)
That means:
if request.POST:
new_data = request.POST.copy()
errors = manipulat
Hi,
I read in the documentation that CheckboxSelectMultipleField has an
identical interface to SelectMultipleField. But this does not seem to
work for me.
I define a Manipulator with SelectMultiple field:
forms.SelectMultipleField(field_name="groups", choices=(('My Test
1','My Test 1'),('My Test
5 matches
Mail list logo