подсажите что не так в коде
class RegForm(UserCreationForm ):
email = forms.EmailField(_('e-mail address'))
def save(self, commit=True):
#turn off saving in parent so as to collects a value of instance
user = super(UserCreationForm, self).save(commit=False)
user.email(self.cleaned_data["email"])
if commit:
user.save()
return user
class RegForm(UserCreationForm ):
email = forms.EmailField(_('e-mail address'))
def save(self, commit=True):
#turn off saving in parent so as to collects a value of instance
user = super(UserCreationForm, self).save(commit=False)
user.email(self.cleaned_data["email"])
if commit:
user.save()
return user
Спасибо