finally I do this

--------------
class form(forms.ModelForm):
fk_dcto = forms.ModelMultipleChoiceField(queryset= ....,
required=False, widget=forms.CheckboxSelectMultiple)
--------------
with this I can save with checkboxselectmultiple.

To define a correctly order to the many to manyfields in the form
declaration I do this.
----------------------------
    def clean_fk_dcto(self):
        self.fk_dcto_copy = self.cleaned_data.get('fk_dcto')
        return []

    def save(self, *args, **kwargs):
        newRow = super(Myform, self).save(*args, **kwargs)

        for item in self.fk_dcto_copy:
            item.fk_dcto.add(newRow)
            item.save()
        return oti

----------------------------

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to