diff options
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/orm/interfaces.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index abaeff49c..775892da1 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -369,6 +369,12 @@ class PropComparator(sql.ColumnOperators): def expression_element(self): return self.clause_element() + def desc(self): + return self.clause_element().desc() + + def asc(self): + return self.clause_element().desc() + def contains_op(a, b): return a.contains(b) contains_op = staticmethod(contains_op) |