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 ?