> def clean_username(self):
> data = self.cleaned_data['username']
> try:
> User.objects.get(username=data)
> except User.DoesNotExist:
> return
> raise forms.ValidationError('The userna
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
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
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
4 matches
Mail list logo