[Answer]-Django admin – how to retrieve original value from DB

1👍

How can you be sure you are not saving that value to database?

When you click the save button, the instance is updated in database.

For testing queries and see directly the values in the database i recommend you to use shell_plus

0👍

You can get the original data via obj.pk

def response_change(self, request, obj):
  original_obj = User.objects.get(obj.pk)

Leave a comment