title: Using a SELECT field for a OneToMany field
body: <p>let's say I've the following very simple models:</p>
  
  <pre><code>class Customer(models.Model):
          name = models.CharField(max_length=50)
  
  class Probe(models.Model):
          OwnerInfo = models.CharField(max_length=50)
          comments = models.CharField(max_length=50)
          customer = models.ForeignKey(Customer, null=True, blank=True)
  </code></pre>
  
  <p>I've been able to add an InLine to the Admin gui, but I'd like to use a SELECT component, so I can just select several Probes and assign them to the Customer. From this question:</p>
  
  <p><a href="https://stackoverflow.com/questions/6034047/one-to-many-inline-select-with-django-admin">one-to-many inline select with django admin</a></p>
  
  <p>I know thanks to Luke's answer (last one) that I should create a custom Form and assign it to my ModelAdmin.form but I can not wonder how to tie it all together to make it work. </p>
  
  <p>May anyone help? </p>
  
  <p>Thanks a lot in advance. </p>
  
  <hr>
  
  <p>OK, I came a step further, and now I've the field added to the Form, like this:</p>
  
  <pre><code>from django.contrib import admin
  from django import forms
  
  from web_gui.models import Probe, Customer, Firmware
  
  class CustomerForm(forms.ModelForm):
  
          probes = forms.ModelMultipleChoiceField(queryset=Probe.objects.all())
  
          def __init__(self, *args, **kwargs):
                  super(CustomerForm, self).__init__(*args, **kwargs)
                  self.fields['probes'].initial = [p.pk for p in Probe.objects.filter(customer_id=self.instance.pk)]
  
          class Meta:
                  model = Customer
  
  
  class CustomerAdmin(admin.ModelAdmin):
          form = CustomerForm
  
  admin.site.register(Probe)
  admin.site.register(Customer, CustomerAdmin)
  admin.site.register(Firmware)
  </code></pre>
  
  <p>but the initial values specified through "initial" are not being selected. What's wrong now?  I assume that next will be to override the save() method to set the Probes on the Customer, am I right?</p>