update model instance django code example
Example 1: django update model
Model.objects.filter(id = 223).update(field1 = 2)
Example 2: model object means in django
from django.db import models
class Person(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)