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

Offer all languages used in the project

parent 5a6f2ef6
...@@ -126,7 +126,7 @@ def show_language(request, lang): ...@@ -126,7 +126,7 @@ def show_language(request, lang):
def show_dictionaries(request, project): def show_dictionaries(request, project):
obj = get_object_or_404(Project, slug = project) obj = get_object_or_404(Project, slug = project)
dicts = Dictionary.objects.filter(project = obj).values_list('language', flat = True).distinct() dicts = Translation.objects.filter(subproject__project = obj).values_list('language', flat = True).distinct()
return render_to_response('dictionaries.html', RequestContext(request, { return render_to_response('dictionaries.html', RequestContext(request, {
'title': _('Dictionaries'), 'title': _('Dictionaries'),
......
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