Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update models.py #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion djorm_pgfulltext/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def contribute_to_class(self, cls, name):
if not getattr(cls, 'update_search_field', None):
def update_search_field(self, search_field=None, fields=None, using=None, config=None, extra=None):
self._fts_manager.update_search_field(
pk=self.pk, search_field=search_field, fields=fields, using=using, config=config, extra=extra
pk=self.pk, search_field=search_field, fields=fields, using=using or self._state.db, config=config, extra=extra
)

setattr(cls, 'update_search_field', update_search_field)
Expand Down