[Bugfix] 重命名applications导致api请求content_type不对

pull/530/head
ibuler 2017-01-09 23:12:32 +08:00
parent be3f94d86c
commit 8658675f67
3 changed files with 3 additions and 3 deletions

View File

@ -195,7 +195,7 @@ function APIUpdateAttr(props) {
url: props.url, url: props.url,
type: props.method || "PATCH", type: props.method || "PATCH",
data: props.body, data: props.body,
contentType: props.content_type || "applications/json; charset=utf-8", contentType: props.content_type || "application/json; charset=utf-8",
dataType: props.data_type || "json" dataType: props.data_type || "json"
}).done(function(data, textStatue, jqXHR) { }).done(function(data, textStatue, jqXHR) {
toastr.success(success_message); toastr.success(success_message);

0
mac_requirements.py Normal file
View File

View File

@ -1,12 +1,12 @@
Django==1.10 Django==1.10
django-bootstrap-form==3.2.1 django-bootstrap-form==3.2.1
logging==0.4.9.6 logging==0.4.9.6
Pillow==3.3.1 Pillow==4.0.0
djangorestframework==3.5.3 djangorestframework==3.5.3
ForgeryPy==0.1 ForgeryPy==0.1
openpyxl==2.4.0 openpyxl==2.4.0
celery==3.1.23 celery==3.1.23
paramiko==2.0.2 paramiko==2.1.1
ansible==2.1.2.0 ansible==2.1.2.0
django-simple-captcha==0.5.2 django-simple-captcha==0.5.2
django-formtools==1.0 django-formtools==1.0