Add API endpoint to create a document based off a document source

This commit is contained in:
Roberto Rosario
2014-10-08 01:51:15 -04:00
parent 4b6c826574
commit b0d6ccbe89
4 changed files with 84 additions and 6 deletions

View File

@@ -138,6 +138,9 @@ class Source(models.Model):
if metadata_dict_list and new_document:
# Only do for new documents
save_metadata_list(metadata_dict_list, document, create=True)
# TODO: Might not be required as metadata app registers signal
# handlers for index update
warnings = update_indexes(document)
class Meta: