From 913e281980dd802e0375a5c36be64ed05d3325c3 Mon Sep 17 00:00:00 2001 From: saksham1115 Date: Fri, 3 Jun 2016 12:19:47 +0000 Subject: [PATCH] Minor Change --- mediagoblin/edit/forms.py | 4 ++-- mediagoblin/edit/views.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index f98b672d..c9eae429 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -101,8 +101,8 @@ class EditAttachmentsForm(wtforms.Form): 'File') class EditSubtitlesForm(wtforms.Form): - subtitle_name = wtforms.StringField( - 'Title') + subtitle_language = wtforms.StringField( + 'Language') subtitle_file = wtforms.FileField( 'File') diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index dfc256e2..8a4df903 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -214,7 +214,7 @@ def edit_subtitles(request, media): request.files['subtitle_file'].stream.close() media.subtitle_files.append(dict( - name=form.subtitle_name.data \ + name=form.subtitle_language.data \ or request.files['subtitle_file'].filename, filepath=subtitle_public_filepath, created=datetime.utcnow(), @@ -226,7 +226,7 @@ def edit_subtitles(request, media): request, messages.SUCCESS, _("You added the subttile %s!") % - (form.subtitle_name.data or + (form.subtitle_language.data or request.files['subtitle_file'].filename)) return redirect(request, -- 2.25.1