I think what you would like is a choice field [1] populated with the
elements coming from the django-countries model. Something like
country =
forms.ChoiceField(choices=models.Countries.objects.all().values('printable_name'))

I hope this is correct and will help you.

V

[1]: http://www.djangoproject.com/documentation/newforms/#choicefield

On May 19, 6:32 am, Jorge Romo <[EMAIL PROTECTED]> wrote:
> Hello again guys!
>
> I'm using django-registration and i wanna use django-countries with it
> so i can ask my new user for its country. But i don't know how to call
> it... this is my django-registration country code:
>
>    Country =  forms.CharField(widget=forms.Select(attrs=attrs_dict,
> choices=()), label=_(u'country'))
>
> Any help will be appreciated!
>
> Thanx!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to