diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-12-23 21:44:05 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-12-24 00:07:24 +0100 |
commit | ac8212fe657802eaf9dfd9d6c0f28f25b750399e (patch) | |
tree | 7966f1cba03949813e9045f2160f1d094e0034ab /mediagoblin/plugins/api/views.py | |
parent | b39d1f2351352fca21666137fa137eb64926a036 (diff) | |
download | mediagoblin-ac8212fe657802eaf9dfd9d6c0f28f25b750399e.tar.lz mediagoblin-ac8212fe657802eaf9dfd9d6c0f28f25b750399e.tar.xz mediagoblin-ac8212fe657802eaf9dfd9d6c0f28f25b750399e.zip |
Remove mongo style .id = ObjectId()
On SQL we can't generate the primary key on our own. So
just remove this stuff.
Diffstat (limited to 'mediagoblin/plugins/api/views.py')
-rw-r--r-- | mediagoblin/plugins/api/views.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mediagoblin/plugins/api/views.py b/mediagoblin/plugins/api/views.py index 4c36d110..d3cef432 100644 --- a/mediagoblin/plugins/api/views.py +++ b/mediagoblin/plugins/api/views.py @@ -25,7 +25,6 @@ from werkzeug.utils import secure_filename from werkzeug.wrappers import Response from celery import registry -from mediagoblin.db.util import ObjectId from mediagoblin.decorators import require_active_login from mediagoblin.processing import mark_entry_failed from mediagoblin.processing.task import ProcessMedia @@ -61,7 +60,6 @@ def post_entry(request): media_type, media_manager = sniff_media(media_file) entry = request.db.MediaEntry() - entry.id = ObjectId() entry.media_type = unicode(media_type) entry.title = unicode(request.form.get('title') or splitext(media_file.filename)[0]) |