title: Change queryset of model field in inlineformset of non parent model
body: <p>I am using an inline formset and need to change the queryset of one of the non parent model's form fields when the formset is instantiated.</p>
  
  <pre><code>class Foo(Model):
     name = models.TextField()
  
  class Bar(Model):
     foo = models.ForiegnKey(Foo)
     other_model = models.ForeignKey(OtherModel)
  
  class BarForm(ModelForm):
     class Meta:
        model=Bar
  
  
  foo = Foo.object.get(id=1)
  FormSet = inlineformset_factory(Foo, Bar, form=BarForm)
  formset = FormSet(instance=foo)
  </code></pre>
  
  <p>Depending on the value of foo which isn't determined until I enter the view code, I need to alter the queryset of the 'other_model' field in the BarForm for all forms in the formset.  Is there a way to do this?  </p>