Commit ee5df7dc authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[entity] give ordermethod=None to fetch_rql to tell you don't want a specific order

--HG--
branch : stable
parent 7eb5f1aed728
......@@ -223,9 +223,10 @@ class Entity(AppObject):
destcls._fetch_restrictions(var, varmaker, destcls.fetch_attrs,
selection, orderby, restrictions,
user, ordermethod, visited=visited)
orderterm = getattr(cls, ordermethod)(attr, var)
if orderterm:
orderby.append(orderterm)
if ordermethod is not None:
orderterm = getattr(cls, ordermethod)(attr, var)
if orderterm:
orderby.append(orderterm)
return selection, orderby, restrictions
@classmethod
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment