2

I have a MySQL longtext field, that corresponds to the following field in a Django model:

class MyModel(models.Model):
    # some other fields
    my_long_text_field = models.TextField(blank=True, null=True)

The problem is that Django seems to truncate my string when I am trying to save data (a unicode string with around 40k characters) to database. I have come across a question where they say that models.TextField corresponds to MySQL longtext.

Then why does this data truncating happening ? What I am doing wrong ?

Crazy Frog
  • 495
  • 8
  • 17
  • To easyfy the awnsers, try to post the clean unicode data and how it became after stored in database. – Abe Jan 09 '18 at 21:16

0 Answers0