don't block so much
This commit is contained in:
parent
26cb860efb
commit
27380c86b7
1 changed files with 2 additions and 0 deletions
|
@ -189,6 +189,8 @@ class ChangeSet(models.Model):
|
|||
return chain(*(changed_objects.values() for changed_objects in self.changed_objects.values()))
|
||||
|
||||
def _clean_changes(self):
|
||||
if self.direct_editing:
|
||||
return
|
||||
with self.lock_to_edit() as changeset:
|
||||
last_map_update_pk = MapUpdate.last_update()[0]
|
||||
if changeset.last_cleaned_with_id == last_map_update_pk:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue