diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-09-04 18:22:22 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-09-04 18:22:22 -0500 |
commit | 7084661d5b6fb8db0446c3868198ad60eae5e786 (patch) | |
tree | 072273b01c236130b909a54274c93158518840bc | |
parent | 5a17728bd551cd25fa3f7054caf1c5fad71004d0 (diff) | |
download | mediagoblin-7084661d5b6fb8db0446c3868198ad60eae5e786.tar.lz mediagoblin-7084661d5b6fb8db0446c3868198ad60eae5e786.tar.xz mediagoblin-7084661d5b6fb8db0446c3868198ad60eae5e786.zip |
#i536: Removing attachments stuff from edit_media(), in its own method now
-rw-r--r-- | mediagoblin/edit/views.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index e1af1a23..11bee110 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -46,9 +46,6 @@ def edit_media(request, media): description=media['description'], tags=media_tags_as_string(media['tags'])) - if len(media['attachment_files']): - defaults['attachment_name'] = media['attachment_files'][0]['name'] - form = forms.EditForm( request.POST, **defaults) @@ -73,14 +70,6 @@ def edit_media(request, media): media['description_html'] = cleaned_markdown_conversion( media['description']) - if 'attachment_name' in request.POST: - media['attachment_files'][0]['name'] = \ - request.POST['attachment_name'] - - if 'attachment_delete' in request.POST \ - and 'y' == request.POST['attachment_delete']: - del media['attachment_files'][0] - media['slug'] = unicode(request.POST['slug']) media.save() |