Single instance update_search_index is never called
Closed this issue · 2 comments
ostronom commented
https://github.com/niwibe/djorm-ext-pgfulltext/blob/master/djorm_pgfulltext/models.py#L14
maybe, there should be
instance.update_search_field(pk=instance.pk)
?
ostronom commented
https://github.com/niwibe/djorm-ext-pgfulltext/blob/master/djorm_pgfulltext/models.py#L75
or, inject pk here (i did this in my project):
self._fts_manager.update_search_field(pk=self.pk)
niwinz commented
You are right. Now fixed.
A lot of thanks.