I think I have it.
Changed to cleaned_data.get('password')
Thank you
On Tuesday, January 29, 2013 2:58:45 PM UTC-5, frocco wrote:
>
> Thanks,
> getting error now that I changed it.
>
> def clean(self):
> cleaned_data = super(RegistrationForm, self).clean()
> password = cleaned_da
Thanks,
getting error now that I changed it.
def clean(self):
cleaned_data = super(RegistrationForm, self).clean()
password = cleaned_data['password']
password1 = cleaned_data['password1']
if password and password1 and password == password1:
pass
Your clean() method shouldn't use self.cleaned_data, it should call
super(RegistrationForm, self).clean(). E.g:
def clean(self):
cleaned_data = super(RegistrationForm, self).clean()
password = cleaned_data['password']
...
return cleaned_data
https://docs.djangoproject.com/en/1.4/r
Hello,
On my registration form, if I enter no data and just press enter, i get a
key error.
Can someone tell me what I am doing wrong?
Thanks
forms.py
from django import forms
from django.contrib.auth.models import User
from django.forms import ModelForm
from customer.models import Customer
clas
4 matches
Mail list logo