aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/edit
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2012-02-25 23:53:11 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2012-02-28 20:52:35 +0100
commit3502958113c09c80830b7bee63c3d82b5ff72eb9 (patch)
treeae5037d788612b6822791cf8e2b6ba279ff2e475 /mediagoblin/edit
parente9f87f728ce67467272d9484b711e2a518537cb4 (diff)
downloadmediagoblin-3502958113c09c80830b7bee63c3d82b5ff72eb9.tar.lz
mediagoblin-3502958113c09c80830b7bee63c3d82b5ff72eb9.tar.xz
mediagoblin-3502958113c09c80830b7bee63c3d82b5ff72eb9.zip
Attachment support in the SQL backend
attachments working with the sql backend. - SQL Schema for attachment files, ordering attachments by their name, not by the submission order (as earlier). - Dot-Notation for attachments, where missing. - convert existing attachments over from mongo -> sql
Diffstat (limited to 'mediagoblin/edit')
-rw-r--r--mediagoblin/edit/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py
index 3df36e8e..d21ef03a 100644
--- a/mediagoblin/edit/views.py
+++ b/mediagoblin/edit/views.py
@@ -120,7 +120,7 @@ def edit_attachments(request, media):
finally:
request.POST['attachment_file'].file.close()
- media['attachment_files'].append(dict(
+ media.attachment_files.append(dict(
name=request.POST['attachment_name'] \
or request.POST['attachment_file'].filename,
filepath=attachment_public_filepath,