Hi all. Really really confused by this one. Can someone show me where I'm being stupid please?
Standard Django 1.5.1 app with MySQL. Trying to save to a VARCHAR(3) column with a forms.CharField form field and a models.CharField model field. When I try to save the form I get this validation error: [image: Inline images 1] This is the MySQL column definition: `customers_impacted` varchar(3) DEFAULT NULL, This is from forms.py (it's a ModelForm): YES_NO = ( ('No', 'No'), ('Yes', 'Yes'), ) customers_impacted = forms.CharField(widget=forms.Select(choices=YES_NO),max_length=3) This is from models.py: customers_impacted = models.CharField(max_length=3) The field was originally a BooleanField but I changed it to CharField and I can't see anywhere it could still be getting the Boolean / True / False info from. Strangely, it works fine using the development server, but this error happens when using Apache + mod_wsgi. I've rebooted the server, restarted everything, tried changing collation etc. Could anyone suggest anything? Any extra logging etc I can turn on somewhere to show where the validation is failing? Thanks. Darren (confused) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
<<snapshot1.png>>