Issue
I have a form for address information. One of the fields is for the address country. Currently this is just a textbox. I would like a drop down list (of ISO 3166 countries) for this. I'm a django newbie so I haven't even used a Django Select widget yet. What is a good way to do this?
Hard-code the choices in a file somewhere? Put them in the database? In the template?
Solution
from django_countries.fields import CountryField
class Foo(models.Model):
country = CountryField()
Answered By - aehlke
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.