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.
File: forms/init.py
class PasswordPoliciesForm
method save()
Code: Indent lines 95 to 99.
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.
File: forms/init.py class PasswordPoliciesForm method save() Code: Indent lines 95 to 99.