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
and when I try to delete a supplier, an error 500 occurs. However, the messages are very common such as:
Request failed with status code 500
In fact, I see the error message is (in the form of html not json):
Cannot delete some instances of the 'Supplier' model because they are referenced through a protected foreign key: 'StockIn.supplier'
Can this issue make the message like:
{
"type": "BlaBlaError",
"details": {...},
"fallback_message": "Cannot delete some instances of the 'Supplier' model because they are referenced through a protected foreign key: 'StockIn.supplier'."
}
If it can, this will greatly help us in developing applications quickly and correctly displaying errors to users. Thank you...
The text was updated successfully, but these errors were encountered:
When I add protect to on_delete in one of the FK fields, for example:
and when I try to delete a supplier, an error 500 occurs. However, the messages are very common such as:
In fact, I see the error message is (in the form of html not json):
Can this issue make the message like:
If it can, this will greatly help us in developing applications quickly and correctly displaying errors to users. Thank you...
The text was updated successfully, but these errors were encountered: