Commit caa07761 authored by Jitka Novotna's avatar Jitka Novotna

your translation shows only subscribed

parent aed27ef8
......@@ -41,6 +41,7 @@ def weblate_context(request):
projects = Project.objects.all_acl(request.user)
# Load user translations if user is authenticated
usersubscriptions = None
userlanguages = None
......@@ -48,7 +49,7 @@ def weblate_context(request):
if request.user.is_authenticated():
usersubscriptions = Translation.objects.filter(
language__in=request.user.profile.languages.all(),
subproject__project__in=projects,
subproject__project__in=request.user.profile.subscriptions.all()
).order_by(
'subproject__project__name', 'subproject__name'
).select_related()
......
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