Minor formatting and syntax fix.
authorAaron Williamson <aaron@copiesofcopies.org>
Thu, 19 Jan 2012 02:21:49 +0000 (21:21 -0500)
committerAaron Williamson <aaron@copiesofcopies.org>
Thu, 19 Jan 2012 02:21:49 +0000 (21:21 -0500)
mediagoblin/edit/views.py
mediagoblin/submit/forms.py
mediagoblin/submit/views.py

index a3b269d842953a0fa728658a1bc0006102809040..cffb8a3c61a3800e42f3bdbb2899dbbdbc0310b5 100644 (file)
@@ -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,
index 0823482235de27fb3db2f6842c508ca7f2d34ee0..4ff52609130656499b0b8a7ea03608eaee4379d1 100644 (file)
@@ -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(
index b91fdb8da8493b01a090f37c6b44f9c7a3afec96..8911bf8286d8401085925c579ebc2a36c55c2aa3 100644 (file)
@@ -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 '')