Switch to unified view

a/Allura/allura/model/session.py b/Allura/allura/model/session.py
...
...
72
                self.objects_modified = [ obj ]
72
                self.objects_modified = [ obj ]
73
            elif st.status == st.deleted:
73
            elif st.status == st.deleted:
74
                self.objects_deleted = [ obj ]
74
                self.objects_deleted = [ obj ]
75
75
76
    def after_flush(self, obj=None):
76
    def after_flush(self, obj=None):
77
        "Update artifact references, and add/update this artifact to solr"
77
        if not getattr(self.session, 'disable_artifact_index', False):
78
        if not getattr(self.session, 'disable_artifact_index', False):
78
            from .artifact import ArtifactLink
79
            from .artifact import ArtifactLink
79
            from .stats import CPA
80
            from .stats import CPA
80
            if self.objects_deleted:
81
            if self.objects_deleted:
81
                search.remove_artifacts(self.objects_deleted)
82
                search.remove_artifacts(self.objects_deleted)