Re: Displaying contrast of a queryset

2024-04-26 Thread Muhammad Juwaini Abdul Rahman
You're looking for `product`, but the model that you queried is `Task`. On Fri, 26 Apr 2024 at 17:40, Abdou KARAMBIZI wrote: > Hello, > *I have 2 models :* > > class Product(models.Model): > product_id = models.AutoField(primary_key=True) > product_name =

Displaying contrast of a queryset

2024-04-26 Thread Abdou KARAMBIZI
Hello, *I have 2 models :* class Product(models.Model): product_id = models.AutoField(primary_key=True) product_name = models.CharField(max_length=200) price = models.IntegerField() image = models.ImageField(upload_to='images/products_images/',null=True,blank=True) def