From 97ec97dbc77373819939557ad20c72a0aced5d61 Mon Sep 17 00:00:00 2001 From: Aaron Williamson Date: Wed, 18 Jan 2012 21:21:49 -0500 Subject: [PATCH] Minor formatting and syntax fix. --- mediagoblin/edit/views.py | 3 ++- mediagoblin/submit/forms.py | 1 + mediagoblin/submit/views.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index a3b269d8..cffb8a3c 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -37,6 +37,7 @@ from mediagoblin.tools.text import ( media_tags_as_string, cleaned_markdown_conversion) from mediagoblin.tools.licenses import SUPPORTED_LICENSES + @get_user_media_entry @require_active_login def edit_media(request, media): @@ -48,7 +49,7 @@ def edit_media(request, media): slug=media.slug, description=media.description, tags=media_tags_as_string(media.tags), - license=media.license)) + license=media.license) form = forms.EditForm( request.POST, diff --git a/mediagoblin/submit/forms.py b/mediagoblin/submit/forms.py index 08234822..4ff52609 100644 --- a/mediagoblin/submit/forms.py +++ b/mediagoblin/submit/forms.py @@ -21,6 +21,7 @@ from mediagoblin.tools.text import tag_length_validator from mediagoblin.tools.translate import fake_ugettext_passthrough as _ from mediagoblin.tools.licenses import licenses_as_choices + class SubmitStartForm(wtforms.Form): file = wtforms.FileField(_('File')) title = wtforms.TextField( diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py index b91fdb8d..8911bf82 100644 --- a/mediagoblin/submit/views.py +++ b/mediagoblin/submit/views.py @@ -69,7 +69,7 @@ def submit_start(request): entry.description_html = cleaned_markdown_conversion( entry.description) - entry['license'] = ( + entry.license = ( unicode(request.POST.get('license')) or '') -- 2.25.1