From eacdac609c50008a0e12fd6aef592d4c44b35bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Sun, 4 Mar 2012 09:41:58 +0100 Subject: [PATCH] Need to pass files here --- trans/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trans/views.py b/trans/views.py index fe9d6ec20..c448fd6d0 100644 --- a/trans/views.py +++ b/trans/views.py @@ -178,7 +178,7 @@ def upload_translation(request, project, subproject, lang): obj = get_object_or_404(Translation, language__code = lang, subproject__slug = subproject, subproject__project__slug = project) if request.method == 'POST': - form = UploadForm(request.POST) + form = UploadForm(request.POST, request.FILES) if form.is_valid(): # FIXME: process upload messages.add_message(request, messages.INFO, _('File content successfully merged into translation.'))