Skip to content

Commit

Permalink
Merge branch 'deletion'
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlecat committed Jan 12, 2015
2 parents 3fa6761 + 8acfcf7 commit 8781024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion critiquebrainz/data/model/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ class DeleteMixin(object):
def delete(self):
"""Delete this object from the DB."""
db.session.delete(self)
db.session.flush()
db.session.commit()
return self

0 comments on commit 8781024

Please sign in to comment.