hasgeek/funnel — Issue #4: Use first_or_404 in views
Author: jace
Created: 2011-10-20 06:09:19+00:00
State: open

Flask-SQLAlchemy has a nifty first_or_404 method on queries. This should be used instead of the verbose method of running a query, checking for null and then raising 404.

All views need to be amended to use `first_or_404`.