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

Coding style fixes

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 8ba54d29
......@@ -571,6 +571,7 @@ def reset_password(request):
}
)
@login_required
def reset_api_key(request):
"""Resets user API key"""
......
......@@ -23,6 +23,7 @@ from rest_framework import serializers
from weblate.trans.models import Project, SubProject, Translation
from weblate.lang.models import Language
class ProjectSerializer(serializers.ModelSerializer):
class Meta(object):
model = Project
......
......@@ -64,7 +64,9 @@ class TranslationViewSet(viewsets.ReadOnlyModelViewSet):
self.request.user
)
if filtered:
return Translation.objects.filter(subproject__project__in=acl_projects)
return Translation.objects.filter(
subproject__project__in=acl_projects
)
return Translation.objects.all()
......
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