Let\'s say I have a Product
model with products in a storefront, and a ProductImages
table with images of the product, which can have zero or more im
If performance matters, my suggestion is to add the hasPictures
boolean field (as editable=False
)
Then keep right value through ProductImage
model signals (or overwriting save
and delete
methods)
Advantages: