About Saving Specific Fields of a Model

If you want to save just specific fields of the model, you can use the update_fields parameter like this:

post = blog.post_set.create(
    title="Hello, World!", 
    content="This is a new post content.",
)
blog.save(update_fields=["changed_at"])

Tips and Tricks Programming Django 5.x Django 4.2 Django 3.2 Python 3