Changes between Initial Version and Version 2 of Ticket #3910


Ignore:
Timestamp:
Apr 21, 2007, 8:17:25 AM (17 years ago)
Author:
Malcolm Tredinnick
Comment:

Fixed summary formatting.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3910

    • Property Component Database wrapperAdmin interface
    • Property Keywords admin DataError added
    • Property Triage Stage UnreviewedAccepted
    • Property Summary Problems with admin and spanish stressesDataError (Data too long for column) in admin caused by html entities overflowing db field size
  • Ticket #3910 – Description

    initial v2  
    22I have found the following Model:
    33
     4{{{
     5#!python
    46class Story(models.Model):
    57        autor = models.CharField(maxlength=50)
     
    1315                list_filter = ['autor']
    1416                list_display = ['titulo', 'autor' ]
    15 #Fin Story
     17}}}
    1618
    1719The model is trivial, it's not the actual.
    1820The problem I found is that if I type í or á in the "titulo" textfield within the admin and save I got the following screen:
    1921
     22{{{
    2023DataError at /admin/polls/story/2/
    2124(1406, "Data too long for column 'message' at row 1")
     
    2528Exception Value: (1406, "Data too long for column 'message' at row 1")
    2629Exception Location: c:\python25\lib\site-packages\MySQL_python-1.2.2-py2.5-win32.egg\MySQLdb\connections.py in defaulterrorhandler, line 35
     30}}}
    2731
    2832It depends on the size of the "titulo", I guess the problem is that when it serialize "í" it turns into "í" then thes size of the verchar gets bigger than the original.
Back to Top