Update all the views so that they use the uploader reference instead

of uploader embedding
This commit is contained in:
Christopher Allan Webber
2011-05-22 16:06:45 -05:00
parent 757f37a52d
commit 16509be160
5 changed files with 13 additions and 8 deletions

View File

@@ -46,7 +46,7 @@ def submit_start(request):
entry['title'] = request.POST['title'] or unicode(splitext(filename)[0])
entry['description'] = request.POST.get('description')
entry['media_type'] = u'image' # heh
entry['uploader'] = request.user
entry['uploader'] = request.user['_id']
# Save, just so we can get the entry id for the sake of using
# it to generate the file path