Changes between Initial Version and Version 2 of Ticket #3910
- Timestamp:
- Apr 21, 2007, 8:17:25 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3910
- Property Component Database wrapper → Admin interface
- Property Keywords admin DataError added
- Property Triage Stage Unreviewed → Accepted
- Property Summary Problems with admin and spanish stresses → DataError (Data too long for column) in admin caused by html entities overflowing db field size
-
Ticket #3910 – Description
initial v2 2 2 I have found the following Model: 3 3 4 {{{ 5 #!python 4 6 class Story(models.Model): 5 7 autor = models.CharField(maxlength=50) … … 13 15 list_filter = ['autor'] 14 16 list_display = ['titulo', 'autor' ] 15 #Fin Story 17 }}} 16 18 17 19 The model is trivial, it's not the actual. 18 20 The problem I found is that if I type í or á in the "titulo" textfield within the admin and save I got the following screen: 19 21 22 {{{ 20 23 DataError at /admin/polls/story/2/ 21 24 (1406, "Data too long for column 'message' at row 1") … … 25 28 Exception Value: (1406, "Data too long for column 'message' at row 1") 26 29 Exception Location: c:\python25\lib\site-packages\MySQL_python-1.2.2-py2.5-win32.egg\MySQLdb\connections.py in defaulterrorhandler, line 35 30 }}} 27 31 28 32 It 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.