Dynamic drop-down list in Django forms
<p>I'm trying to add a dynamic drop-down list in my Django account registration form.</p>

<p>forms.py:</p>

<pre><code>class CompanySignupForm(account.forms.SignupForm):
    first_name = forms.CharField(
        label="First Name",
        max_length=30,
        widget=forms.TextInput(),
        required=True)

    last_name = forms.CharField(
        label="Last Name",
        max_length=30,
        widget=forms.TextInput(),
        required=True)

    company = forms.CharField(
        label="Company Name",
        max_length=60,
        widget=forms.TextInput(),
        required=True)
</code></pre>

<p>models.py:</p>

<pre><code>class EmployerProfile(models.Model):
    user = models.OneToOneField(settings.AUTH_USER_MODEL)

    first_name = models.CharField(max_length=30)
    last_name = models.CharField(max_length=30)
    company = models.CharField(max_length=40)

    def __unicode__(self):
        return self.company
</code></pre>

<p>The question is, if I want the field "company" to be a drop-down list consisting of about 10,000 entries, what's the best way to approach this? Should I be using JS and JSON data? jQuery for autocomplete? I just want to do it in the most effective way possible.</p>