Fix gettinf of translation object

This commit is contained in:
Michal Čihař 2012-02-28 10:31:10 +01:00
parent d121e0397f
commit 40fc1799dc

View File

@ -20,7 +20,7 @@ def show_subproject(request, project, subproject):
}))
def show_translation(request, project, subproject, lang):
obj = get_object_or_404(Language, language__code = lang, subproject__slug = subproject, subproject__project__slug = project)
obj = get_object_or_404(Translation, language__code = lang, subproject__slug = subproject, subproject__project__slug = project)
return render_to_response('translation.html', RequestContext(request, {
'object': obj,