Ejemplo n.º 1
0
    def post_save_models(self):
        """Perform all actions that need to happen after a single
        organisation's been parsed."""
        organisation = self.get_model('Organisation')

        if not organisation:
            return False

        post_save.set_activity_reporting_organisation(organisation)
        post_save.set_publisher_fk(organisation)

        # Solr indexing
        OrganisationTaskIndexing(instance=organisation).run()
Ejemplo n.º 2
0
def organisation_pre_delete(sender, instance, **kwargs):
    OrganisationTaskIndexing(instance=instance).delete()
Ejemplo n.º 3
0
def organisation_post_save(sender, instance, **kwargs):
    OrganisationTaskIndexing(instance=instance).run()