Greetings, I'm trying to use a SelectMultiple with a set of static choices. I'm experiencing odd behavior when the number of choices exceeds 10. For example, take the following Model and ModelForm:
class Project(models.Model): RECIPIENTS = ( (1,'Brad'), (2,'Fred'), (3,'Tom'), ... (12,'Harry'), (13,'Betty'), ) recipients = models.CharField(max_length=255,choices=RECIPIENTS) class ProjectForm(forms.ModelForm): recipients = forms.CharField(widget=forms.SelectMultiple (choices=Project.RECIPIENTS)) If I select Harry (12) and Betty (13) then save, the correct list appears in the database column: [u'12',u'13']. However, when I edit the project in the admin interface, Brad (1), Fred (2) and Tom (3) are selected. What seems to be happening is that SelectMultiple is selecting 1,2,1 and 3 instead of 12 and 13. Can anyone offer any advice? I have worked around this by using letters instead of numbers but this work-around is less than ideal. Thanks, Todd --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---