Re: extending django-registration forms

2011-04-07 Thread Antonio Sánchez
i have tried a lot things, but nothing works... only when i delete
that field, so that is the problem, but i dont know why!?!? :S

On 6 abr, 22:29, Antonio Sánchez  wrote:
> Hi, im having problems extending django-registration register form. i
> have extended auth.User -> UserProfile, and added some attributes, one
> of this is country, that is a ForeignKey to Country Table (Django-
> Countries, with all countries).
>
> After configuring django-registration, i extend register form , one of
> the new fields is a forms.ModelChoiceField with queryset
> Country.objects.all(), after that, i configure in a new file a new
> funtion that connects
> with user_registered signal.
>
> All works if i dont put Country field in the extended form, but if i
> do it, fails.. :
> __init__() got multiple values for keyword argument 'queryset'
>
> here are portions of this code:http://pastebin.com/LfNJisg8
>
> some help?? thanks!

-- 
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 more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



extending django-registration forms

2011-04-06 Thread Antonio Sánchez
Hi, im having problems extending django-registration register form. i
have extended auth.User -> UserProfile, and added some attributes, one
of this is country, that is a ForeignKey to Country Table (Django-
Countries, with all countries).

After configuring django-registration, i extend register form , one of
the new fields is a forms.ModelChoiceField with queryset
Country.objects.all(), after that, i configure in a new file a new
funtion that connects
with user_registered signal.

All works if i dont put Country field in the extended form, but if i
do it, fails.. :
__init__() got multiple values for keyword argument 'queryset'

here are portions of this code: http://pastebin.com/LfNJisg8

some help?? thanks!

-- 
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 more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.