linuxlewis/djorm-ext-pgfulltext

Single instance update_search_index is never called

Closed this issue · 2 comments

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) ?

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)

You are right. Now fixed.

A lot of thanks.