hooks/synccomputed.py
changeset 10192 365e5a0287d6
parent 9967 e65873ad0371
child 10395 7e311ee8b5b0
--- a/hooks/synccomputed.py	Mon Feb 02 22:05:00 2015 +0100
+++ b/hooks/synccomputed.py	Mon Feb 02 23:17:15 2015 +0100
@@ -161,6 +161,8 @@
             # expected to have been set by finalize_computed_attributes
             select = rdef.formula_select
             for rel_node in select.get_nodes(nodes.Relation):
+                if rel_node.is_types_restriction():
+                    continue
                 rschema = schema.rschema(rel_node.r_type)
                 lhs, rhs = rel_node.get_variable_parts()
                 for sol in select.solutions: