mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Merge pull request #5214 from dmkoch/patch-1
Quote nested API parameters in api.js
This commit is contained in:
commit
0e106c1657
|
@ -102,7 +102,7 @@ $(function () {
|
|||
var entry = entries[i]
|
||||
var paramKey = entry[0]
|
||||
var paramValue = entry[1]
|
||||
var $elem = $form.find('[name=' + paramKey + ']')
|
||||
var $elem = $form.find('[name="' + paramKey + '"]')
|
||||
var dataType = $elem.data('type') || 'string'
|
||||
|
||||
if (dataType === 'integer' && paramValue) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user