Remove direct index updating and delete from metadata and source apps and move it to document indexing app via signals

This commit is contained in:
Roberto Rosario
2012-07-26 06:14:42 -04:00
parent 9dc07de628
commit ba550c7f03
4 changed files with 24 additions and 33 deletions

View File

@@ -14,7 +14,6 @@ from converter.api import get_available_transformations_choices
from converter.literals import DIMENSION_SEPARATOR
from documents.models import Document
from documents.events import history_document_created
from document_indexing.api import update_indexes
from metadata.api import save_metadata_list
from scheduler.api import register_interval_job, remove_job
from acls.utils import apply_default_acls
@@ -130,7 +129,6 @@ class BaseModel(models.Model):
if metadata_dict_list and new_document:
# Only do for new documents
save_metadata_list(metadata_dict_list, document, create=True)
warnings = update_indexes(document)
class Meta:
ordering = ('title',)