Note that there are some explanatory texts on larger screens.

plurals
  1. POData gets corrupted on form send, =\r\n introduced in the data every 75 characters?
    primarykey
    data
    text
    <p>I'm working on a project in Django nonrel, on Google App Engine, though I have a feeling my problem has nothing to do with either of these directly .</p> <p>I have a hidden field in one of the models that is defined like so:</p> <pre><code>models.CharField(max_length=400, null=True, blank=True,default="{}") </code></pre> <p>The field is meant to receive JSON data from a widget in my admin, and in the client its value changes properly.</p> <p><em>(Which data is being sent is irrelevant to my problem - whatever string is in the field value is being corrupted)</em></p> <p><b>The problem is</b> - when I look at the data as passed to the django save function , I see that every 75 characters I get <code>=\r\n</code> inside the data string. This effectively breaks the string, rendering my data useless. I have no idea where this is coming from, or what causes this.</p> <p>More interesting points:</p> <ul> <li>The admin form has <code>enctype='multipart/form-data'</code>, since I use GAE blobstore to upload a file in that form</li> <li>I'm using <a href="http://www.allbuttonspressed.com/projects/django-filetransfers" rel="nofollow">django-filetransfers</a> to facilitate working with the blobstore</li> <li>I've checked the request going out of the browser, the data going out is clean</li> <li>Django saves the data in the model as UTF8</li> </ul> <p>I haven't found anything remotely close to my problem on google...</p> <p>Does anyone have a solution? Or maybe a direction on where to start looking?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload