Commit f21588d8 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents d270f4f4 cec144aa
...@@ -537,6 +537,8 @@ class Translation(models.Model, URLMixin, PercentMixin): ...@@ -537,6 +537,8 @@ class Translation(models.Model, URLMixin, PercentMixin):
created_units.add(newunit.id) created_units.add(newunit.id)
# Get lists of stale units to delete # Get lists of stale units to delete
# FIXME: this query can get huge, so we should find better way
# to delete stale units, probably sort of garbage collection
units_to_delete = self.unit_set.exclude( units_to_delete = self.unit_set.exclude(
id__in=created_units id__in=created_units
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment