From 122f6123260a601c2001f5878bb72bcf1c2691cb Mon Sep 17 00:00:00 2001 From: Konsta Vesterinen Date: Thu, 3 Apr 2014 20:54:25 +0300 Subject: [PATCH] Fix doc block, fixes #77 --- sqlalchemy_utils/functions/sort_query.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sqlalchemy_utils/functions/sort_query.py b/sqlalchemy_utils/functions/sort_query.py index bd1e1bc..9d8944b 100644 --- a/sqlalchemy_utils/functions/sort_query.py +++ b/sqlalchemy_utils/functions/sort_query.py @@ -153,10 +153,13 @@ def sort_query(query, *args, **kwargs): >>> query = sort_query(query, 'category-name') - :param query: query to be modified - :param sort: string that defines the label or column to sort the query by - :param errors: whether or not to raise exceptions if unknown sort column - is passed + :param query: + query to be modified + :param sort: + string that defines the label or column to sort the query by + :param silent: + Whether or not to raise exceptions if unknown sort column + is passed. By default this is `True` indicating that no errors should + be raised for unknown columns. """ - return QuerySorter(**kwargs)(query, *args)