[facet] add missing selector to HasRelationFacet stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 29 Apr 2011 10:29:25 +0200
branchstable
changeset 7280 571b29842ef1
parent 7279 eb73ce823622
child 7288 b156200ebc9d
[facet] add missing selector to HasRelationFacet
web/facet.py
--- a/web/facet.py	Fri Apr 29 09:33:30 2011 +0200
+++ b/web/facet.py	Fri Apr 29 10:29:25 2011 +0200
@@ -1016,6 +1016,7 @@
           rtype = 'has_image'
           role = 'subject'
     """
+    __select__ = partial_relation_possible() & match_context_prop()
     rtype = None # override me in subclass
     role = 'subject' # role of filtered entity in the relation