Could someone help me out with this error or Warning as it states in the exception?
On May 14, 6:14 pm, Chris <[EMAIL PROTECTED]> wrote: > Hello I created a new forms form and I am having uses with this > statement: > > year_of_birth = forms.ChoiceField(required=False, > choices=YEAR_OF_BIRTH) > > and tuple looks like so: > year_of_birth = ((1990, '1990'), (1989, '1989'), ...) > > On my local dev server, I have latest django and use sqllite, this > works fine but when I push code to our company dev server and try to > run code it, it breaks and give me the following message. On the > company dev we use mysql. This almost looks like it could be a mysql > specific bug but the error is so vague who knows. I don't understand > how I can pass a tuple through and it think that I am giving it a '' > value. > > Exception Type: Warning > Exception Value: Incorrect integer value: '' for column > 'year_of_birth' at row 1 > Exception Location: /usr/lib/python2.5/site-packages/MySQLdb/ > cursors.py in _warning_check, line 80 > > Could someone please help. This error is driving me crazy! > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---