django object update code example
Example 1: django update model
Model.objects.filter(id = 223).update(field1 = 2)
Example 2: django pk
pk stands the "primary key" in django which represents a models ID.
The ID attribute is generated for you automatically behind the scences
for each model and any newly created instances after that.
Example 3: create django object
Author.objects.create(name="Joe")