cubicweb/rtags.py
changeset 11932 7b2247098f58
parent 11888 0849a5eb57b8
child 12212 f2e6fb5ddf68
--- a/cubicweb/rtags.py	Fri Jan 27 17:42:16 2017 +0100
+++ b/cubicweb/rtags.py	Fri Jan 20 16:39:44 2017 +0100
@@ -77,7 +77,8 @@
     # function given as __init__ argument and kept for bw compat
     _init = _initfunc = None
 
-    def __init__(self, parent=None):
+    def __init__(self, parent=None, __module__=None):
+        super(RelationTags, self).__init__(__module__)
         self._tagdefs = {}
         self._parent = parent
         if parent is not None:
@@ -143,7 +144,7 @@
 
         >>> class_afs = uicfg.autoform_section.derive(__name__, is_instance('Class'))
         """
-        copied = self.__class__(self)
+        copied = self.__class__(self, __module__=__name__)
         copied.__module__ = module
         copied.__select__ = select
         return copied