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

Sort listing

parent fbff6ae2
......@@ -24,7 +24,7 @@ def home(request):
if request.user.is_authenticated():
profile = request.user.get_profile()
usertranslations = Translation.objects.filter(language__in = profile.languages.all())
usertranslations = Translation.objects.filter(language__in = profile.languages.all()).order_by('subproject__project__name', 'subproject__name')
top_translations = Profile.objects.order_by('-translated')[:10]
top_suggestions = Profile.objects.order_by('-suggested')[:10]
......
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