Stringify the data only during GET mode.

This commit is contained in:
Ashesh Vashi
2016-01-07 08:37:14 +05:30
parent 67a80ce8dd
commit ee3efc369d
2 changed files with 20 additions and 17 deletions

View File

@@ -978,7 +978,7 @@
url: msql_url,
type: 'GET',
cache: false,
data: self.model.toJSON(true),
data: self.model.toJSON(true, 0, 'GET'),
dataType: "json",
contentType: "application/json"
}).done(function(res) {