Skip to content

Commit

Permalink
Collapsed multiple 'versionadded' directives into a single one for ea…
Browse files Browse the repository at this point in the history
…ch version, where appropriate.
  • Loading branch information
jfinkels committed May 15, 2012
1 parent 9b60a3d commit e690857
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
22 changes: 5 additions & 17 deletions flask_restless/manager.py
Expand Up @@ -291,29 +291,17 @@ def create_api_blueprint(self, model, methods=READONLY_METHODS,
Added the `results_per_page` keyword argument.
.. versionadded:: 0.5
Added the `include_columns` keyword argument.
.. versionadded:: 0.5
Added the `validation_exceptions` keyword argument.
Added the `include_columns` and `validation_exceptions` keyword
argument.
.. versionadded:: 0.4
Added the `authentication_required_for` keyword argument.
Added the `allow_functions`, `allow_patch_many`,
`authentication_required_for`, `authentication_function`, and
`collection_name` keyword arguments.
.. versionadded:: 0.4
Added the `authentication_function` keyword argument.
.. versionadded:: 0.4
Added the `allow_functions` keyword argument.
.. versionchanged:: 0.4
Force the model name in the URL to lowercase.
.. versionadded:: 0.4
Added the `allow_patch_many` keyword argument.
.. versionadded:: 0.4
Added the `collection_name` keyword argument.
"""
if authentication_required_for and not authentication_function:
msg = ('If authentication_required is specified, so must'
Expand Down
12 changes: 4 additions & 8 deletions flask_restless/views.py
Expand Up @@ -405,16 +405,12 @@ def __init__(self, session, model, authentication_required_for=None,
Added the `results_per_page` keyword argument.
.. versionadded:: 0.5
Added the `include_columns` keyword argument.
.. versionadded:: 0.5
Added the `validation_exceptions` keyword argument.
.. versionadded:: 0.4
Added the `authentication_required_for` keyword argument.
Added the `include_columns`, and `validation_exceptions` keyword
arguments.
.. versionadded:: 0.4
Added the `authentication_function` keyword argument.
Added the `authentication_required_for` and
`authentication_function` keyword arguments.
"""
super(API, self).__init__(session, model, *args, **kw)
Expand Down

0 comments on commit e690857

Please sign in to comment.