Sort listing

This commit is contained in:
Michal Čihař 2012-03-05 14:26:17 +01:00
parent fbff6ae252
commit a665b69968

View File

@ -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]