I removed the model save/delete hooks for index updates since they were causing too much trouble with migrations

This commit is contained in:
Jonas Winkler
2020-11-08 11:24:57 +01:00
parent d31d45c2cf
commit ec1f65a355
5 changed files with 48 additions and 9 deletions

View File

@@ -166,3 +166,7 @@ def set_log_entry(sender, document=None, logging_group=None, **kwargs):
user=user,
object_repr=document.__str__(),
)
def add_to_index(sender, document, **kwargs):
index.add_or_update_document(document)