Skip to content

Instantly share code, notes, and snippets.

@atroche
Created June 16, 2011 13:42
Show Gist options
  • Save atroche/1029250 to your computer and use it in GitHub Desktop.
Save atroche/1029250 to your computer and use it in GitHub Desktop.
ERROR: test_staff_can_moderate (frontend.conversation.tests.ConversationViews)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/notroot/streetlife/frontend/conversation/tests.py", line 56, in setUp
self.message.save()
File "/home/notroot/.virtualenvs/streetbook/lib/python2.6/site-packages/mongoengine/document.py", line 102, in save
doc = self.to_mongo()
File "/home/notroot/.virtualenvs/streetbook/lib/python2.6/site-packages/mongoengine/base.py", line 749, in to_mongo
data[field.db_field] = field.to_mongo(value)
File "/home/notroot/.virtualenvs/streetbook/lib/python2.6/site-packages/mongoengine/base.py", line 291, in to_mongo
value_dict = dict([(key, self.field.to_mongo(item)) for key, item in value.items()])
File "/home/notroot/.virtualenvs/streetbook/lib/python2.6/site-packages/mongoengine/fields.py", line 640, in to_mongo
id_field_name = document.__class__._meta['id_field']
AttributeError: type object 'tuple' has no attribute '_meta'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment