title: Show manytomany field in Django list view
body: <p>I am trying to show the values of a manytomany field called teachers in a Django ListView.</p>
  
  <p>At present my model looks like this:</p>
  
  <pre><code>class Classform(models.Model):
  
      # Fields
      name = models.CharField(max_length=255)
      slug = extension_fields.AutoSlugField(populate_from='name', blank=True)
      created = models.DateTimeField(auto_now_add=True, editable=False)
      last_updated = models.DateTimeField(auto_now=True, editable=False)
  
      # Relationship Fields
      school = models.ForeignKey('eduly.School', default=1)
      teachers = models.ManyToManyField('eduly.Teacher', )
  </code></pre>
  
  <p>My ListView looks like this:</p>
  
  <pre><code>class ClassformListView(GroupRequiredMixin, ListView):
      model = Classform
      group_required = [u"school_admin"]
      login_url = "/login/"
      raise_exception = True
  </code></pre>
  
  <p>And my template for the list view looks like this:</p>
  
  <pre><code>&lt;tr&gt;
  &lt;td&gt;{{object.pk}}&lt;/td&gt;
  &lt;td&gt;&lt;a href="{{object.get_absolute_url}}"&gt;{{object}}&lt;/a&gt;&lt;/td&gt;
  &lt;td&gt;{{ object.name }}&lt;/td&gt;
  &lt;td&gt;{{ object.teachers }}&lt;/td&gt;
  &lt;td&gt;{{ object.created }}&lt;/td&gt;
  &lt;td&gt;{{ object.last_updated }}&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>When this code runs the displayed value for <code>object.teachers</code> is <code>appname.Teacher.None</code></p>
  
  <p>I have noticed that Django has created a table called <code>appname_classform</code> and also a table called 'appname_classform_teachers' (presumably for the manytomany field) but I am not sure how I need to change <code>object.teachers</code> to get the name of the teachers. The 'appname_classform_teachers' contains valid entries for teachers in the app name_teachers table.</p>