aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2011-05-09 00:23:12 +0200
committerSebastian Spaeth <Sebastian@SSpaeth.de>2011-05-09 00:23:12 +0200
commitec61f094926c7d64bd76f7d4dc79ce859d6f60ef (patch)
tree64f992f400124381b2a4b6eecbdbedc07534ca80
parenta1eb1f6051300e5d3ce9d1f32d28a25a567e73d8 (diff)
downloadmediagoblin-ec61f094926c7d64bd76f7d4dc79ce859d6f60ef.tar.lz
mediagoblin-ec61f094926c7d64bd76f7d4dc79ce859d6f60ef.tar.xz
mediagoblin-ec61f094926c7d64bd76f7d4dc79ce859d6f60ef.zip
Fix description submission in form handling
When we submitted an image the description would remain empty. THis was because of some weird typo in form handling. Get an attribute with .get('description') and not with .get(['description']). With this patch, descriptions actually go into the database. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
-rw-r--r--mediagoblin/submit/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py
index 9c4eb3a4..5e262f12 100644
--- a/mediagoblin/submit/views.py
+++ b/mediagoblin/submit/views.py
@@ -42,7 +42,7 @@ def submit_start(request):
# create entry and save in database
entry = request.db.MediaEntry()
entry['title'] = request.POST['title']
- entry['description'] = request.POST.get(['description'])
+ entry['description'] = request.POST.get('description')
entry['media_type'] = u'image' # heh
entry['uploader'] = request.user