In my ProductList classs, when I try to call get_context_data in another method, I get an error \'ProductList\' object has no attribute \'obj
ProductList
get_context_data
\'ProductList\' object has no attribute \'obj
Sorry for such a blurred question. It's just my first try of Django. I read some documentation and realized that I can actually get a list of objects I need with the filter():
filter()
data = self.model.objects.filter(categories__in=self.get_category_menu())