Hello all, I would like to have a Multiple Select box, render the chosen fields of a CommaSeparatedIntegerField.
The CommaSeparatedIntegerField stores the ability of a user to move to a given area : ---------------------------------------------- Mobility = models.CommaSeparatedIntegerField(maxlength=70,choices=REGION_CHOICES) - Choices are build using the following statement : REGION_CHOICES = [(region.id,region.name) for region in Region.objects.all() ] - The form manipulator for this field is described as : forms.SelectMultipleField(field_name="Mobility", size=7,is_required=True,choices=REGION_CHOICES), ---------------------------------------------- The form is correctly render. Users are able to choose and save there choices without problem. But I have trouble to get choices with value over 10 to be selected while editing it ! for exemple if a user select choice number 23. When he comes back to edit the form values '2' and '3' will be selected and not '23'. if the user selectes choices '1' and '23' and save it the database entry shows 1,23 and the select box will have choices '1' '2' and '3' slected but not '1' and '23' I was wondering how to get to tow digits values selected ? Thanks in advance for your hints xav --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---