Fix Warning.check to use instance for delete
issue3065 review715002
This commit is contained in:
+1
-1
@@ -546,7 +546,7 @@ class Warning_(ModelSQL, ModelView):
|
||||
])
|
||||
if not warnings:
|
||||
return True
|
||||
cls.delete([x.id for x in warnings if not x.always])
|
||||
cls.delete([x for x in warnings if not x.always])
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user