Skip to content

Commit 43d7a3e

Browse files
committed
fix: correct method call
1 parent 85ff958 commit 43d7a3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

algoliasearch_django/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ def _should_really_index(self, instance):
240240
try:
241241
count_args = len(inspect.signature(self.should_index).parameters)
242242
except AttributeError:
243+
# noinspection PyDeprecation
243244
count_args = len(inspect.getargspec(self.should_index).args)
244245

245246
if is_method or count_args is 1:
@@ -281,7 +282,7 @@ def save_record(self, instance, update_fields=None, **kwargs):
281282
# Should not index, but since we don't now the state of the
282283
# instance, we need to send a DELETE request to ensure that if
283284
# the instance was previously indexed, it will be removed.
284-
self.delete_obj(instance)
285+
self.delete_record(instance)
285286
return
286287

287288
try:

0 commit comments

Comments
 (0)