> Field clean methods do not return cleaned_data dict, they return
> specific data from within that dict.
Tom
Thanks so much! That fixed it! For the life of me I can't
understand how my site has been operating
for MONTHS without this bug manifesting itself. I guess my site
didn't have to use
On Mon, Apr 16, 2012 at 4:39 PM, Chris Seberino wrote:
> def clean_username(self):
>
> """
> custom validation
> code
> """
>
> if "username" in self.cleaned_data:
> username = self.cleaned_data["username"]
>
INVITATION_CODE = "You should have received one of these."
PAR_EMAIL_ADD = "Will be used for all communications."
PASSWORD= ""
STUD_FIRST_NAME = "Enter what the student prefers to go by."
STUD_LAST_NAME = ""
COURSE_1= "Select the course enrolled in and/or getting
tutoring in."
CO
you can check the form data dictionary by:
if form.is_valid():
print form.__dict__
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send emai
paste your form code please
On Sun, Apr 15, 2012 at 11:54 PM, Andy McKay wrote:
> What does your form code look like?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
>
What does your form code look like?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For
The following code extracts the user info from a registration page on
my Django site.
Lately it isn't extracting the different fields from
form.cleaned_data. When
I print cd["username"] (i.e. form.cleaned_data["username"]) it
gives the ENTIRE
form.cleaned_data dict!?!?! Why can't I extract ele
I don't know what changed but I can't seem to extract valid form data.
(It was working for months previously.)
Below is the function that creates new users when they register.
I store the data in cd. I can print the contents of cd and confirm cd
is a dictionary
but I can't access any values!!!
Fo
8 matches
Mail list logo