Filter Objects

Report a typo

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.

Write a program in Python 3
red_cars = ...
___

Create a free account to access the full topic