don't block so much

This commit is contained in:
Laura Klünder 2017-12-20 12:40:34 +01:00
parent 26cb860efb
commit 27380c86b7

View file

@ -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: