MCPcopy
hub / github.com/bugsink/bugsink / save

Method save

users/forms.py:71–77  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

69 self.add_error("password1", error)
70
71 def save(self, **kwargs):
72 commit = kwargs.pop("commit", True)
73 user = super().save(commit=False)
74 user.email = user.username
75 if commit:
76 user.save()
77 return user
78
79
80class UserEditForm(ModelForm):

Callers 1

signupFunction · 0.95

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected