'Update password if it\'s set.'

def save(self, commit=True):

    user = super(UserChangeForm, self).save(commit=False)
    if self.cleaned_data['password1']:
        user.set_password(self.cleaned_data['password1'])
    if commit:
        user.save()
        self.save_m2m()
    return user
