(self, signal, sender, instances=None, **kwargs)
An update on ``instances`` has occurred.

        Propagate it to the search engine index models.
An update on ``instances`` has occurred.
An update on instances has occurred .
def __call__(self, signal, sender, instances=None, **kwargs):
        '''An update on ``instances`` has occurred.

        Propagate it to the search engine index models.
        '''
        if sender:
            # get a new session
            models = self.se.router
            se_session = models.session()
            if signal == models.post_delete:
                return self.remove(instances, sender, se_session)
            else:
                return self.index(instances, sender, se_session)
def __call__ ( self , signal , sender , instances = None , * * kwargs ) : if sender : # get a new session models = self . se . router se_session = models . session ( ) if signal == models . post_delete : return self . remove ( instances , sender , se_session ) else : return self . index ( instances , sender , se_session )