@@ -410,9 +410,7 @@ def setOrder(self, order):
410
410
the latter being either "ASC" or "DESC" for ascending or
411
411
descending order respectively.
412
412
:type order: iterable or :class:`bool`
413
- :raise ValueError: if any attribute in `order` is not valid or
414
- if any attribute appears more than once in the resulting
415
- ORDER BY clause.
413
+ :raise ValueError: if any attribute in `order` is not valid.
416
414
417
415
.. versionchanged:: 0.19.0
418
416
allow one to many relationships in `order`. Emit a
@@ -466,14 +464,15 @@ def addConditions(self, conditions):
466
464
"""Add conditions to the constraints to build the WHERE clause from.
467
465
468
466
:param conditions: the conditions to restrict the search
469
- result. This must be a list of tuples with a pair of an
470
- attribute name and a condition on that attribute
467
+ result. This must be a list of tuples, each being a pair
468
+ of an attribute name and a condition on that attribute
471
469
respectively. The attribute name may be wrapped with a
472
470
JPQL function (such as "UPPER(title)").
473
471
474
472
For backward compatibility with previous versions, this
475
473
may alternatively be a mapping of attribute names to a
476
- (lists of) conditions.
474
+ (lists of) conditions. This legacy use is deprecated,
475
+ though.
477
476
:type conditions: :class:`list` of :class:`tuple` or :class:`dict`
478
477
:raise ValueError: if any attribute in `conditions` is not valid.
479
478
0 commit comments