cubicweb/server/sources/native.py
changeset 11135 421520f4d516
parent 11129 97095348b3ee
child 11237 f32134dd0067
--- a/cubicweb/server/sources/native.py	Thu Feb 11 10:03:51 2016 +0100
+++ b/cubicweb/server/sources/native.py	Fri Jan 29 10:04:35 2016 +0100
@@ -923,7 +923,7 @@
                 self._handle_is_relation_sql(cnx,
                                              'INSERT INTO is_instance_of_relation(eid_from,eid_to) VALUES (%s,%s)',
                                              (entity.eid, eschema.eid))
-        if 'CWSource' in self.schema and source.eid is not None: # else, cw < 3.10
+        if source.eid is not None:  # else the source has not yet been inserted
             self._handle_is_relation_sql(cnx, 'INSERT INTO cw_source_relation(eid_from,eid_to) VALUES (%s,%s)',
                                          (entity.eid, source.eid))
         # now we can update the full text index