Default to json, not HTML
This commit is contained in:
parent
fc275c6e5d
commit
dfc37bf8b8
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ def list_items(model_name):
|
|||
text = (request.args.get("q") or "").strip() or None
|
||||
limit = min(int(request.args.get("limit", 100)), 500)
|
||||
offset = int(request.args.get("offset", 0))
|
||||
view = (request.args.get("view") or "option").strip()
|
||||
view = (request.args.get("view") or "json").strip()
|
||||
|
||||
rows = call(Model, "ui_query", db.session, text=text, limit=limit, offset=offset) \
|
||||
or default_query(db.session, Model, text=text, limit=limit, offset=offset)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue