Update Object in the Database

Report a typo

You have a model Task with fields description, is_done, priority:

class Task(models.Model):
    description = models.CharField(max_length=256)
    is_done = models.BooleanField()
    priority = models.IntegerField()

Update priority from 100 to 100500 for the task with description "call mom"(without quotes)

Write a program in Python 3





___

Create a free account to access the full topic