TypeError: index_queryset() got an unexpected keyword argument 'using'
So I've just read the sources from django-haystack
3.0 and there are several weird things.
First thing is that the using
parameter is never used in the function definition (maybe its for subclasses, I didnt dig that far):
def index_queryset(self, using=None):
"""
Get the default QuerySet to index when doing a full update.
Subclasses can override this method to avoid indexing certain objects.
"""
return self.get_model()._default_manager.all()
Back to your error, in the build_queryset
method, the parameter using
is passed to the function index_queryset not the queryset itself, so I can't see why it would raise an error.
Last thing is, I tested with both Django 2 and 3 projets, and using is always a method of queryset, not an argument, so I'm quite confused. Is your traceback from Django 3.2
and haystack 3.0
?