mitsuhiko/flask-sqlalchemy — pull request #85 by robcowie (2012-06-15 15:31:52+00:00)
Title: Allow optional message on 404 from db query

`description` arg on .get_or_404() and .first_or_404() is passed to abort, which in turn passes it to the NotFound exception.

For example User.query.get_or_404('Unknown user') will return a 404 response with 'Unknown User' in it's body.