title: Whats easiest way to use filter_horizontal outside of the Admin in Django
body: <p>I have a non-admin form in which I'd like to use filter_horizontal on.  I have read <a href="http://www.hoboes.com/Mimsy/hacks/replicating-djangos-admin/reusing-djangos-filter_horizontal/" rel="nofollow noreferrer">this</a> which does much more than what I want (I only want the filter_horizontal). I wanted to check to see if anyone has come up with a simpler (more current) way to just implement the filter_horizontal.</p>
  
  <p>So here is the code:</p>
  
  <pre><code>class County(models.Model):
      """County Names"""
      name = models.CharField(max_length=64)
      state = USStateField(null=True)
  
  class Company(models.Model):
      """The basics of a company"""
      name = models.CharField(max_length = 100)
      counties = models.ManyToManyField(County,blank=True, null=True)
  </code></pre>
  
  <p>Then our form currently look like this.  I thought this would work..</p>
  
  <pre><code>from django.contrib.admin.widgets import FilteredSelectMultiple
  class RaterCompanyForm(ModelForm):
      class Meta:
          model = RaterOrganization
          exclude = ('remrate_projects',)
          widgets = {'counties': FilteredSelectMultiple(verbose_name="Counties",
                                                        is_stacked=True,) }
      class Media:
          css = {'all':['admin/css/widgets.css']}
          js = ['/admin/jsi18n/']
  </code></pre>
  
  <p>BTW: I understand this may be a duplicate of <a href="https://stackoverflow.com/questions/5348595/django-filter-horizontal-in-form">this</a> but his question wasn't answered.  I've done plenty of homework <a href="http://djangosnippets.org/snippets/2466/" rel="nofollow noreferrer">here</a> and <a href="http://bitkickers.blogspot.com/2010/05/reuse-djangos-filterhorizontal-admin.html" rel="nofollow noreferrer">here</a> but neither of these appear to work.</p>