here is what you need to do,

1.
in file django/db/models/fields/related.py => class ManyToManyField =>
function get_manipulator_field_objs

replace
return [curry(forms.SelectMultipleField, size=min(max(len(choices), 5),
15), choices=choices)]

with
return [curry(forms.CheckboxSelectMultipleField, choices=choices)]

2.
in file django/forms/__init__.py => class CheckboxSelectMultipleField,
function __init__

add "is_required=False" so it looks like this:
def __init__(self, field_name, choices=[], validator_list=[],
is_required=False):

3.
you should be getting one more error complaining about comparing 'str'
and 'long'
in that same file __init__.py, edit the function 'render' for class
CheckboxSelectMultipleField. Find the line that starts with
"output.append" and change value to str(value) . That did the trick for
me.

Hope that helps.
Ivan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to