We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b2e53b commit b0e3bb6Copy full SHA for b0e3bb6
piccolo/query/methods/delete.py
@@ -31,10 +31,10 @@ def _validate(self):
31
explicitly forced.
32
"""
33
if (not self.where_delegate._where) and (not self.force):
34
+ classname = self.table.__name__
35
raise DeletionError(
- "Warning - do you really want to delete all the data from "
36
- f"{self.table._meta.tablename}? If so, use "
37
- "MyTable.delete(force=True), or add a where clause."
+ "Do you really want to delete all the data from "
+ f"{classname}? If so, use {classname}.delete(force=True)."
38
)
39
40
@property
0 commit comments