Rename Model._write_lock → Model.write_lock

This commit is contained in:
miruka
2020-05-28 14:13:14 -04:00
parent 0f6f3bce98
commit c0118c4e28
3 changed files with 5 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ class ModelItem:
fields = {name: self.serialize_field(name)}
with parent._write_lock:
with parent.write_lock:
index_then = parent._sorted_data.index(self)
parent._sorted_data.sort()
index_now = parent._sorted_data.index(self)