Commit facdaf5a authored by Michal Čihař's avatar Michal Čihař

Use iterator here

parent 822c0782
......@@ -154,7 +154,7 @@ def auto_translation(request, project, subproject, lang):
subprj = SubProject.objects.get(project = obj.subproject.project, slug = autoform.cleaned_data['subproject'])
sources = sources.filter(translation__subproject = subprj)
for unit in units:
for unit in units.iterator():
update = sources.filter(checksum = unit.checksum)
if update.count() > 0:
# Get first entry
......
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