aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/views.py
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-04 20:16:01 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-05 21:08:58 +0100
commitf4ee839939e4215820df3132b62c51f721510f77 (patch)
treef2d27755109fce36028ada5cd5a0ed626ad930d6 /mediagoblin/submit/views.py
parent1d9399660416fe5a04d322303986434815bc15f0 (diff)
downloadmediagoblin-f4ee839939e4215820df3132b62c51f721510f77.tar.lz
mediagoblin-f4ee839939e4215820df3132b62c51f721510f77.tar.xz
mediagoblin-f4ee839939e4215820df3132b62c51f721510f77.zip
Dot-Notation for MediaEntry.media_type
Diffstat (limited to 'mediagoblin/submit/views.py')
-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 8da71341..4e4c7c43 100644
--- a/mediagoblin/submit/views.py
+++ b/mediagoblin/submit/views.py
@@ -55,7 +55,7 @@ def submit_start(request):
# create entry and save in database
entry = request.db.MediaEntry()
entry['_id'] = ObjectId()
- entry['media_type'] = unicode(media_type)
+ entry.media_type = unicode(media_type)
entry.title = (
unicode(request.POST['title'])
or unicode(splitext(filename)[0]))