so basically i have this generic view that inherits from ListView and what i want it do to is to take some sort of argument (like a string or "options") and then filter my model depending on those arguments.
I've looked for two days and can't seem to find much about this. I've played around with overwriting the get_queryset function also just tried filtering in directly like so:
model = product.objects.filter(pk__in=[1,2,3,4,5])
however most of the times it just gives me this error:
/python3.5/site-packages/django/views/generic/list.py", line 38, in get_queryset
queryset = self.model._default_manager.all()
AttributeError: 'QuerySet' object has no attribute '_default_manager'
I don't really need an "solution" i'd be just fine if someone just could point me to where i can read in deapth about this since i've only managed to find basic description.
Thanks