title: AttributeError: 'module' object has no attribute 'code'
body: <p>I am writing a MongoDB Query like this:
      Message.objects.filter( Q(author_id=user.id) | Q(for_user_id=user.id) | Q( shared_with_id=user.id)).order_by( "-timestamp")[:10]</p>
  
  <p>The versions are</p>
  
  <p>MongoDB = 1.8.2
  Pymonogo :1.11</p>
  
  <pre><code>Traceback (most recent call last):
  
  File "/mnt/install/wwm/thirdparty/django/core/handlers/base.py", line 100, in    get_response
  response = callback(request, *callback_args, **callback_kwargs)
  
  File "/mnt/install/wwm/thirdparty/django/contrib/auth/decorators.py", line 25, in _wrapped_view
  return view_func(request, *args, **kwargs)
  
   File "/mnt/install/wwm/main/views.py", line 1232, in user_messages
   mesg_list = list(Message.objects( Q(author_id=user.id) | Q(for_user_id=user.id) | Q( shared_with_id=user.id)).order_by( "-timestamp")[:10])
  
   File "/mnt/install/wwm/thirdparty/mongoengine/queryset.py", line 223, in call
   self._where_clause = q_obj.as_js(self._document)
  
    File "/mnt/install/wwm/thirdparty/mongoengine/queryset.py", line 89, in as_js
    return pymongo.code.Code(' '.join(js), js_scope)
  
   AttributeError: 'module' object has no attribute 'code'
  </code></pre>
  
  <p>The same line of code is working fine with
  pymongo : 2.0.1
  mongodb : 2.1.0 </p>
  
  <p>Can you tell where exactly is error or any workoaround since i dont want to update the pymongo.</p>
  
  <p>Thanks</p>