title: How to show ForeignKey fields in Model Form
body: <pre><code># models.py
  
  class modelA(models.Model):
      a = models.CharField()
      b = models.CharField()
  
  class ModelB(models.Model):
      c = models.CharField()
      d = models.ForeignKey(modelA)
  
  # forms.py
  
  class myForm (ModelForm):
      class Meta: 
         model = ModelB
         fields = ('d')
         widgets = { 'd' : TextInput() }
  </code></pre>
  
  <p>I want to show a form which displays <code>a</code> and <code>b</code> fields as <code>TextInput</code>and how to do it?</p>
  
  <p>The above <code>forms.py</code> code displays <code>d</code> as name but not its fields.. </p>