``` import couchdb from couchdb.mapping import Document db = couchdb.Server().create('test') mydoc = Document() mydoc.store(db) docs = db.view('_all_docs', wrapper=Document._wrap_row) mydoc_ = docs.rows[0] db.delete(mydoc) ``` Raises `KeyError: '_rev'` The easiest solution I found is ([mappings.py](https://github.com/djc/couchdb-python/blob/master/couchdb/mapping.py#L402)): ``` @classmethod def _wrap_row(cls, row): doc = row.get('doc') if doc is not None: return cls.wrap(doc) data = row['value'] data['_id'] = row['id'] data['_rev'] = data['rev'] # <===== return cls.wrap(data) ``` even if it seems a bit hacky. Is this an intended behaviour?