Revision b2285544
Added by Benjamin Dauvergne about 13 years ago
| calebasse/personnes/forms.py | ||
|---|---|---|
|
fields = ('username', 'email', 'password1', 'password2', 'worker')
|
||
|
|
||
|
def save(self, commit=True):
|
||
|
import pdb
|
||
|
pdb.set_trace()
|
||
|
instance = super(UserForm, self).save(commit=False)
|
||
|
if self.cleaned_data['password1']:
|
||
|
instance.set_password(self.cleaned_data['password1'])
|
||
Also available in: Unified diff
personnes: remove pdb tracepoint, fixes #1998