mwebs pisze: > i get an "Error binding parameter 4 - probably unsupported type."- > Interface error > my model looks like this > > name = models.CharField(max_length=100, unique = True) > active = models.BooleanField() > image = models.ImageField(upload_to = 'scroller/', null=True) > image_thumbnail = models.ImageField(upload_to = 'scroller/', > null=True) > startpos = models.CommaSeparatedIntegerField(max_length=100) > masksize = models.CommaSeparatedIntegerField(max_length=100) > > and I asign the values like this: > m = Model.objects.get(name = name) > m.startpos = (1, 2) > m.masksize = (2,2) > m.save() > > I guess that it s the commaSeperatedIntegerField that makes trubble. > Any ideas?
I think this has to be '1,2' and '2,2', since CommaSeparatedIntegerField is a descendant of CharField. Try joining the tuples with ','. -- Jarek Zgoda Skype: jzgoda | GTalk: [EMAIL PROTECTED] | voice: +48228430101 "We read Knuth so you don't have to." (Tim Peters) --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---