aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-06-02 08:47:30 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-06-02 08:47:30 -0500
commite0f8487005f4e9adca41648d35bb8dc6db850032 (patch)
tree91fccdd603a8fcf3c4f515b7e33273b5ed334d69
parent4d4b49a84e2791da6b12ef580565251c379264b6 (diff)
downloadmediagoblin-e0f8487005f4e9adca41648d35bb8dc6db850032.tar.lz
mediagoblin-e0f8487005f4e9adca41648d35bb8dc6db850032.tar.xz
mediagoblin-e0f8487005f4e9adca41648d35bb8dc6db850032.zip
Elrond put that ObjectId thing in the db.util module and wants us to
use that one ;)
-rw-r--r--mediagoblin/auth/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py
index 4ccd3d86..0c125544 100644
--- a/mediagoblin/auth/views.py
+++ b/mediagoblin/auth/views.py
@@ -14,9 +14,9 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import bson.objectid
from webob import Response, exc
+from mediagoblin.db.util import ObjectId
from mediagoblin.auth import lib as auth_lib
from mediagoblin.auth import forms as auth_forms
from mediagoblin.util import send_email
@@ -154,7 +154,7 @@ def verify_email(request):
return exc.HTTPNotFound()
user = request.db.User.find_one(
- {'_id': bson.objectid.ObjectId(unicode(request.GET['userid']))})
+ {'_id': ObjectId(unicode(request.GET['userid']))})
verification_successful = bool