Re: Need help with my Form.save() method. Trouble with ForeignKey and ManyToMany Fields.

2010-08-09 Thread Nuno Maltez
>        def clean_username(self): >                data = self.cleaned_data['username'] >                try: >                        User.objects.get(username=data) >                except User.DoesNotExist: >                        return >                raise forms.ValidationError('The userna

Re: Need help with my Form.save() method. Trouble with ForeignKey and ManyToMany Fields.

2010-08-05 Thread strayhand
Yep. I used Firebug to look at the HTTP information and "username" is in there. Here's what firebug shows: Parametersapplication/x-www-form-urlencoded address P.O. Box 56868 areas 1 birth_date 1979-10-09 cityPuyallup country USA csrfmiddlewaretoken 0258a209df8a7df0ccca24ce789a448e e

Re: Need help with my Form.save() method. Trouble with ForeignKey and ManyToMany Fields.

2010-08-05 Thread Paulo Almeida
Can you check the POST data and see if 'username' is there? You can do it easily with Firefox's Firebug extension. - Paulo On Thu, Aug 5, 2010 at 6:24 AM, strayhand wrote: > So I'm rolling out my own registration form that should update the > following models: > > - User (auth module) > - UserP

Need help with my Form.save() method. Trouble with ForeignKey and ManyToMany Fields.

2010-08-04 Thread strayhand
So I'm rolling out my own registration form that should update the following models: - User (auth module) - UserProfile Everything seems to be coming together but I'm having a hard time with the save() method for the form. My UserProfile model has a couple of fields that refer to other models and