@@ -146,7 +146,7 @@ def summary_forms(self, bundle, request):
146146        rulesManager  =  topics_rules ()
147147        # Fetch every registered model 
148148        # to print out its rules 
149-         for  model  in  utils . get_topic_models ( self .topic .module ):
149+         for  model  in  self .topic .get_models ( ):
150150            name                 =  model .__name__ .lower ()
151151            rules                =  rulesManager .model (model ).all ()
152152            fields               =  utils .get_model_fields (model )
@@ -384,7 +384,7 @@ def search(self, query):
384384    def  rdf_search (self , subject , predicate , obj ):
385385        obj  =  obj ["name" ] if  "name"  in  obj  else  obj 
386386        # retrieve all models in current topic 
387-         all_models  =  dict ((model .__name__ , model ) for  model  in  utils . get_topic_models ( self .topic .module ))
387+         all_models  =  dict ((model .__name__ , model ) for  model  in  self .topic .get_models ( ))
388388        # If the received obj describe a literal value 
389389        if  self .is_registered_literal (predicate ["name" ]):
390390            # Get the field name into the database 
@@ -434,7 +434,7 @@ def rdf_search(self, subject, predicate, obj):
434434    def  get_models_output (self ):
435435        # Select only some atribute 
436436        output  =  lambda  m : {'name' : m .__name__ , 'label' : m ._meta .verbose_name .title ()}
437-         return  [ output (m ) for  m  in  utils . get_topic_models ( self .topic .module ) ]
437+         return  [ output (m ) for  m  in  self .topic .get_models ( ) ]
438438
439439    def  get_relationship_search (self ):
440440        isRelationship  =  lambda  t : t .type  ==  "relationship" 
0 commit comments