Answer the question
In order to leave comments, you need to log in
How to remove a message in django admin?
Good day. Help please with one problem. There are two models, a category and a related product model. I decided to experiment so that when deleting a category that has products, an error message pops up that it cannot be deleted. I wrote the code, everything works, the model is not deleted, but one problem arises. After clicking the add button, in addition to my message, a message about successful deletion also pops up, although the model has not been deleted. And in the last actions in the admin panel, it also says that the model has been deleted. How to remove these records of successful deletion and adding to the history of recent actions.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question