Skip to content

Commit

Permalink
somehow delete fuction disappeared. spotted by leonel on irc. thanks!
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Nov 26, 2010
1 parent cb2d122 commit caf15b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions couchdbkit/schema/base.py
Expand Up @@ -503,6 +503,9 @@ def delete(self):
raise TypeError("the document is not saved")

db = self.get_db()

# delete doc
db.delete_doc(self._id)

# reinit document
del self._doc['_id']
Expand Down

0 comments on commit caf15b3

Please sign in to comment.