Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
teleyinex committed Oct 5, 2017
1 parent c60dbb1 commit 43b4023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybossa/repositories/blog_repository.py
Expand Up @@ -61,8 +61,8 @@ def update(self, blogpost):
raise DBIntegrityError(e)

def delete(self, blogpost):
project_id = blogpost.project_id
self._validate_can_be('deleted', blogpost)
project_id = blogpost.project_id
blog = self.db.session.query(Blogpost).filter(Blogpost.id==blogpost.id).first()
self.db.session.delete(blog)
self.db.session.commit()
Expand Down

0 comments on commit 43b4023

Please sign in to comment.