mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2026-03-13 10:32:25 +08:00
add Makefile
update cli
This commit is contained in:
@@ -14,5 +14,5 @@ async def get_object_or_404(model: Generic[MODEL], **kwargs):
|
||||
"""
|
||||
obj = await model.filter(**kwargs).first() # type:model
|
||||
if not obj:
|
||||
raise HTTPException(HTTP_404_NOT_FOUND, 'Not Found')
|
||||
raise HTTPException(HTTP_404_NOT_FOUND, "Not Found")
|
||||
return obj
|
||||
|
||||
Reference in New Issue
Block a user