{"action":"closed","issue":{"url":"https://api.github.com/repos/tarak/django-password-policies/issues/43","labels_url":"https://api.github.com/repos/tarak/django-password-policies/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/tarak/django-password-policies/issues/43/comments","events_url":"https://api.github.com/repos/tarak/django-password-policies/issues/43/events","html_url":"https://github.com/tarak/django-password-policies/issues/43","id":104800755,"number":43,"title":"Create password history when commit = True","user":{"login":"HuskerBob","id":14117782,"avatar_url":"https://avatars.githubusercontent.com/u/14117782?v=3","gravatar_id":"","url":"https://api.github.com/users/HuskerBob","html_url":"https://github.com/HuskerBob","followers_url":"https://api.github.com/users/HuskerBob/followers","following_url":"https://api.github.com/users/HuskerBob/following{/other_user}","gists_url":"https://api.github.com/users/HuskerBob/gists{/gist_id}","starred_url":"https://api.github.com/users/HuskerBob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuskerBob/subscriptions","organizations_url":"https://api.github.com/users/HuskerBob/orgs","repos_url":"https://api.github.com/users/HuskerBob/repos","events_url":"https://api.github.com/users/HuskerBob/events{/privacy}","received_events_url":"https://api.github.com/users/HuskerBob/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-03T23:26:03Z","updated_at":"2015-09-08T22:18:25Z","closed_at":"2015-09-08T22:18:25Z","body":"I propose that the creation of a PasswordHistory record should only occur when the 'commit' parameter is True. This allows a sub-form to make the call  object = form.save(commit=False) to get the user object without creating a history record.\r\n\r\nFile: forms/__init__.py \r\nclass PasswordPoliciesForm\r\nmethod save()\r\nCode: Indent lines 95 to 99.\r\n"}}