cobrateam / flask-mongoalchemy

Flask support for MongoDB using MongoAlchemy.
https://pythonhosted.org/Flask-MongoAlchemy/
BSD 2-Clause "Simplified" License
217 stars 45 forks source link

Is writing to the _id field supported? #44

Closed wordyallen closed 8 years ago

wordyallen commented 8 years ago
In [6]: from testUsers import Comments, Users

In [7]: comment = Comments(title='test', text='testing mongo linking', _id='bob')

In [8]: comment.save()
...
AttributeError: mongo_id

Thanks

reference

wordyallen commented 8 years ago

I looked into the mongo shell and saw the linking is handled automatically.