(self, index, doc_class)
Register the model with the registry
Register the model with the registry
Register the model with the registry
def register(self, index, doc_class):
        """Register the model with the registry"""
        self._models[doc_class.django.model].add(doc_class)

        for related in doc_class.django.related_models:
            self._related_models[related].add(doc_class.django.model)

        for idx, docs in iteritems(self._indices):
            if index._name == idx._name:
                docs.add(doc_class)
                return

        self._indices[index].add(doc_class)
def register ( self , index , doc_class ) : self . _models [ doc_class . django . model ] . add ( doc_class ) for related in doc_class . django . related_models : self . _related_models [ related ] . add ( doc_class . django . model ) for idx , docs in iteritems ( self . _indices ) : if index . _name == idx . _name : docs . add ( doc_class ) return self . _indices [ index ] . add ( doc_class )