You have a model Car with fields speed and color:
class Car(models.Model):
color = models.CharField(max_length=32)
speed = models.FloatField()
Filter red cars from the database. The result should be a QuerySet object.
You have a model Car with fields speed and color:
class Car(models.Model):
color = models.CharField(max_length=32)
speed = models.FloatField()
Filter red cars from the database. The result should be a QuerySet object.
Create a free account to access the full topic