MCPcopy
hub / github.com/liangliangyy/DjangoBlog / save

Method save

accounts/admin.py:27–34  ·  view source on GitHub ↗
(self, commit=True)

Source from the content-addressed store, hash-verified

25 return password2
26
27 def save(self, commit=True):
28 # Save the provided password in hashed format
29 user = super().save(commit=False)
30 user.set_password(self.cleaned_data["password1"])
31 if commit:
32 user.source = 'adminsite'
33 user.save()
34 return user
35
36
37class BlogUserChangeForm(UserChangeForm):

Callers 5

test_validate_accountMethod · 0.45
form_validMethod · 0.45
account_resultFunction · 0.45
form_validMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_validate_accountMethod · 0.36