Commit a3842774 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents f0f4f997 a6472944
......@@ -1321,10 +1321,11 @@ def translate(request, project, subproject, lang):
# Invalidate counts cache
unit.translation.invalidate_cache('suggestions')
# Invite user to become translator if there is nobody else
recent_changes = Change.objects.filter(
action=Change.ACTION_CHANGE,
recent_changes = Change.objects.content().filter(
translation=unit.translation,
).exclude(user=None).order_by('-timestamp')
).exclude(
user=None
).order_by('-timestamp')
if recent_changes.count() == 0 or True:
messages.info(
request,
......
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