Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee committed Aug 29, 2022
1 parent 4215c53 commit aa6a698
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sqladmin/application.py
Expand Up @@ -523,7 +523,10 @@ async def ajax_lookup(self, request: Request) -> Response:
model_view = self._find_model_view(identity)

name = request.query_params.get("name")
term = request.query_params.get("term", None)
term = request.query_params.get("term")

if not name or term:
return JSONResponse(content={}, status_code=400)

try:
loader: QueryAjaxModelLoader = model_view._form_ajax_refs[name]
Expand Down

0 comments on commit aa6a698

Please sign in to comment.