forked from orbit-oss/flask
Fix issue 140
This allows for a view function to return something like:
jsonify(error="error msg"), 400
This commit is contained in:
parent
7ed3cba658
commit
075b6b11c8
3 changed files with 47 additions and 1 deletions
3
CHANGES
3
CHANGES
|
|
@ -45,6 +45,9 @@ Relase date to be decided, codename to be chosen.
|
|||
- The :meth:`flask.render_template` method now accepts a either an iterable of
|
||||
template names or a single template name. Previously, it only accepted a
|
||||
single template name. On an iterable, the first template found is rendered.
|
||||
- View functions can now return a tuple with the first instance being an
|
||||
instance of :class:`flask.Response`. This allows for returning
|
||||
``jsonify(error="error msg"), 400`` from a view function.
|
||||
|
||||
|
||||
Version 0.8.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue