About Refreshing Model Instance

To refresh a model instance values from the database, use the refresh_from_db() method.

1
2
profile_form.save()
request.user.refresh_from_db()

Tips and Tricks Programming Django 3.2 Django 2.2 Django 1.11 Django 1.8