title: How to access a modelform's Foreignkey attribute from within a template?
body: <h2>Description:</h2>
  
  <p>I would like to know how to access a ForeignKey's field within template code.</p>
  
  <p>Given the sample models.py code:</p>
  
  <pre><code>class Publisher(models.Model):
      name = models.CharField(max_length=30)
      address = models.CharField(max_length=50)
  
  
  class Book(models.Model):
      title = models.CharField(max_length=100)
      publisher = models.ForeignKey(Publisher)
  </code></pre>
  
  <p>And Sample forms.py code:</p>
  
  <pre><code>class BookForm(ModelForm):
       class Meta:
           model = Book
           fields = ['title', 'publisher']
  </code></pre>
  
  <p>And sample views.py code:</p>
  
  <pre><code>def sample(request):
    bf = BookForm(request.POST)
    return render(request, 'sample.html', {'BookForm': bf})
  </code></pre>
  
  <h2>Question:</h2>
  
  <p>What is line(s) of code needed to correctly access the value: <strong>publisher.name</strong> from within template code using 'BookForm'?</p>