Skip to content

Commit

Permalink
Bumping version and doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tjpnz committed Jan 2, 2018
1 parent c482f4a commit d82cc0d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Flask-Validates

[![Build Status](https://travis-ci.org/tjpnz/flask-validates.svg?branch=master)](https://travis-ci.org/tjpnz/flask-validates)
[![Documentation Status](https://readthedocs.org/projects/flask-validates/badge/)](http://flask-validates.readthedocs.org/en/latest/)

Painless form validation ([WTForms](https://github.com/wtforms/wtforms) or [Flask-WTF](https://github.com/lepture/flask-wtf)) using view decorators.

Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
project = "Flask-Validates"
copyright = "2018, Thomas Prebble"
author = "Thomas Prebble"
version = "0.1.0"
release = "0.1.0"
version = "0.2.0"
release = "0.2.0"


# -- Options for HTML output ----------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Using pip:
Usage
-----

Flask-Validates binds forms to views using the :func:`~flask_validates.validates` decorator, depending on how you use it Flask-Validates can eliminate the need entirely to create explicit form classes. When a view is invoked :func:`~flask_validates.validates` creates a form behind the scenes based on the fields you provide which is then exposed to the view via :data:`flask_validates.current_form` which works in a similar manner to Flask's :data:`flask.current_app`.
Flask-Validates binds forms to views using the :func:`~flask_validates.validates` decorator, depending on how you use it Flask-Validates can eliminate the need entirely to create explicit form classes. When a view is invoked :func:`~flask_validates.validates` creates a form behind the scenes based on the fields you provide which is then exposed to the view via :data:`~flask_validates.current_form` which works in a similar manner to Flask's :data:`flask.current_app`.

Alongside creating forms :func:`~flask_validates.validates` also sets the appropriate HTTP 400 response code if form validation fails.

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="Flask-Validates",
version="0.1.0",
version="0.2.0",
url="https://github.com/tjpnz/flask-validates",
license="MIT",
author="Thomas Prebble",
Expand Down

0 comments on commit d82cc0d

Please sign in to comment.