diff --git a/django_typesense/mixins.py b/django_typesense/mixins.py index 261fef8..6083360 100644 --- a/django_typesense/mixins.py +++ b/django_typesense/mixins.py @@ -14,9 +14,10 @@ def update(self, **kwargs): assert issubclass(self.model, TypesenseModelMixin), ( f"Model `{self.model}` must inherit `TypesenseMixin` to use the TypesenseQueryset Manager" ) + update_result = super().update(**kwargs) collection = self.model.get_collection(self, many=True) collection.update() - return super().update(**kwargs) + return update_result class TypesenseManager(models.Manager):