1👍
✅
Your all()
method should return a queryset. For example, you could do
class ProductAttributeManager(models.Manager):
def all(self):
return super(ProductAttributeManager , self).all()
However, the above method does not actually change the behaviour, so you could just remove the all()
method instead.
Source:stackexchange.com