Re: Problems extracting valid form data lately

2012-04-16 Thread Chris Seberino
> 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

Re: Problems extracting valid form data lately

2012-04-16 Thread Tom Evans
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"] >              

Re: Problems extracting valid form data lately

2012-04-16 Thread Chris Seberino
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

Re: Problems extracting valid form data lately

2012-04-16 Thread Blackpearl
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

Re: Problems extracting valid form data lately

2012-04-16 Thread Kejun He
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. >

Re: Problems extracting valid form data lately

2012-04-15 Thread Andy McKay
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

Problems extracting valid form data lately

2012-04-15 Thread Chris Seberino
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

Problems extracting valid form data lately

2012-04-14 Thread Chris Seberino
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