Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6755b79

Browse files
authored
Merge pull request#11 from zhangchunlin/master
fix NameError
2 parentsfc95dd2 +2c84647 commit6755b79

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎uliweb_apijson/apijson/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ moment = {
5454
settings.APIJSON_REQUESTS.[TAG_NAME]
5555

5656
request types currently support: POST, PUT
57+
5758
request configuration currently support: ADD,DISALLOW,NECESSARY (still not fully support[all the configuration items](https://github.com/TommyLemon/APIJSON/wiki#%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86))
5859

5960

‎uliweb_apijson/apijson/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,14 @@ def _post_one(self,key,tag):
365365
ifnotpermission_check_ok:
366366
returnjson({"code":400,"msg":"no permission"})
367367

368-
DISALLOW=request_setting_POST.get("DISALLOW")
368+
DISALLOW=POST.get("DISALLOW")
369369
ifDISALLOW:
370370
forfieldinDISALLOW:
371371
iffieldinparams:
372372
log.error("request '%s' disallow '%s'"%(tag,field))
373373
returnjson({"code":400,"msg":"request '%s' disallow '%s'"%(tag,field)})
374374

375-
NECESSARY=request_setting_POST.get("NECESSARY")
375+
NECESSARY=POST.get("NECESSARY")
376376
ifNECESSARY:
377377
forfieldinNECESSARY:
378378
iffieldnotinparams:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp