You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It don't work and raise a exception remind me added where clause
raiseDeletionError(
"Do you really want to delete all the data from "f"{classname}? If so, use {classname}.delete(force=True). ""Otherwise, add a where clause."
)
The text was updated successfully, but these errors were encountered:
@router.delete('/product/{row_id}')asyncdefdelete_product(row_id: str):
product=awaitProduct.objects().where(Product.id==row_id).first()
# you can also use get() method like this to get single object# product = await Product.objects().get(Product.id == row_id)awaitproduct.remove() # a proxy to a delete query
I am working on a API of deleting a single resource named
product
.Part of the code is
It don't work and raise a exception remind me added where clause
The text was updated successfully, but these errors were encountered: