hmarr/mongoengine — Issue #318: Between 0.5 and 0.5.1 call arguments to a save method broke.
Author: amcgregor
Created: 2011-10-15 03:33:58+00:00
State: open

I get the following traceback with MongoEngine 0.5.1 installed, but don't get it with 0.5 installed, regardless of the version of pymongo (tested to `pymongo<2.0` and against latest on pypi):

```
Traceback (most recent call last):
File "template.py", line 47, in
settings.save() ; settings.attach(root)
File "/Users/amcgregor/.../model/__init__.py", line 163, in attach
self.save()
File "/Users/amcgregor/.../model/__init__.py", line 224, in save
return super(Asset, self).save(safe=safe, force_insert=force_insert, validate=validate)
File "/Users/amcgregor/Projects/sample/lib/python2.7/site-packages/mongoengine/document.py", line 177, in save
_refs=_refs)
TypeError: save() got an unexpected keyword argument 'write_options'
```

This appears to be a regression in the handling of reference fields.