Re: select multiple in many to many fields not usable for long lists

2006-05-26 Thread [EMAIL PROTECTED]
I actually have mine set in a way that you can put type=CheckBox or type=SelectBox as an argument in the model definition. Let me know if you need the code. Ivan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: select multiple in many to many fields not usable for long lists

2006-05-26 Thread [EMAIL PROTECTED]
cpaciba bolshoe I will try this, of course it breaks the original code but I guess it's the only way --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Re: select multiple in many to many fields not usable for long lists

2006-05-26 Thread [EMAIL PROTECTED]
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,