Use _make_writable also in delete function
This way the _make_writable can be changed in one place.
This commit is contained in:
parent
1e464d9d4c
commit
ff3a5935fc
@ -460,7 +460,7 @@ class Relation (object):
|
||||
Returns the number of affected rows.'''
|
||||
|
||||
l = len(self.content)
|
||||
self._readonly = False
|
||||
self._make_writable(copy_content=False)
|
||||
self.content = self.difference(self.selection(expr)).content
|
||||
return len(self.content) - l
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user