{"action":"created","issue":{"url":"https://api.github.com/repos/coleifer/peewee/issues/854","repository_url":"https://api.github.com/repos/coleifer/peewee","labels_url":"https://api.github.com/repos/coleifer/peewee/issues/854/labels{/name}","comments_url":"https://api.github.com/repos/coleifer/peewee/issues/854/comments","events_url":"https://api.github.com/repos/coleifer/peewee/issues/854/events","html_url":"https://github.com/coleifer/peewee/issues/854","id":133808531,"number":854,"title":"Possibility to see what changes with a save?","user":{"login":"kramer65","id":596581,"avatar_url":"https://avatars.githubusercontent.com/u/596581?v=3","gravatar_id":"","url":"https://api.github.com/users/kramer65","html_url":"https://github.com/kramer65","followers_url":"https://api.github.com/users/kramer65/followers","following_url":"https://api.github.com/users/kramer65/following{/other_user}","gists_url":"https://api.github.com/users/kramer65/gists{/gist_id}","starred_url":"https://api.github.com/users/kramer65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kramer65/subscriptions","organizations_url":"https://api.github.com/users/kramer65/orgs","repos_url":"https://api.github.com/users/kramer65/repos","events_url":"https://api.github.com/users/kramer65/events{/privacy}","received_events_url":"https://api.github.com/users/kramer65/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-15T20:25:36Z","updated_at":"2016-02-19T07:45:05Z","closed_at":"2016-02-18T02:43:48Z","body":"Let's say I've got a `User` model from which I start a new record as follows:\r\n```\r\nu = User()\r\nu.username = 'bob'\r\nu.location = 'home'\r\nu.save()\r\n```\r\nI now use the same user instance and write two values of which one is the same:\r\n```\r\nu.username = 'bob'  # stays the same\r\nu.location = 'work'  # changes\r\nu.save()\r\n```\r\nWhen saving the updated values, is there a way with Peewee to know which of the values changed (i.e.: `location`), without actually comparing them with the existing values?\r\n\r\nIve got a model with about 50 fields to which I simply save the values of a json object. It would be so much easier if I could get the differences, instead of me needing to compare all those 50 values manually."},"comment":{"url":"https://api.github.com/repos/coleifer/peewee/issues/comments/186105302","html_url":"https://github.com/coleifer/peewee/issues/854#issuecomment-186105302","issue_url":"https://api.github.com/repos/coleifer/peewee/issues/854","id":186105302,"user":{"login":"kramer65","id":596581,"avatar_url":"https://avatars.githubusercontent.com/u/596581?v=3","gravatar_id":"","url":"https://api.github.com/users/kramer65","html_url":"https://github.com/kramer65","followers_url":"https://api.github.com/users/kramer65/followers","following_url":"https://api.github.com/users/kramer65/following{/other_user}","gists_url":"https://api.github.com/users/kramer65/gists{/gist_id}","starred_url":"https://api.github.com/users/kramer65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kramer65/subscriptions","organizations_url":"https://api.github.com/users/kramer65/orgs","repos_url":"https://api.github.com/users/kramer65/repos","events_url":"https://api.github.com/users/kramer65/events{/privacy}","received_events_url":"https://api.github.com/users/kramer65/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T07:45:05Z","updated_at":"2016-02-19T07:45:05Z","body":"Alright thanks. In that case I will need to build something myself.\r\n\r\nThanks!"}}