title: custom intermediate table django fetch the records
body: <p>I have two models with M2M relation. The custom table is defined as with en extra field</p>
  
  <pre><code>class DoctorHospital(models.Model):
  clinic = models.ForeignKey(ClinicHospital, on_delete=models.CASCADE)
  doctor = models.ForeignKey(Doctor, on_delete=models.CASCADE)
  shift = models.CharField(max_length = 10)
  </code></pre>
  
  <p>Problem is that I am trying to fetch all clinics based on a specific doctor. Data is come based on specific doctor but custom field <strong>shift</strong> does not come.</p>
  
  <p>here is my class base view</p>
  
  <pre><code>class DoctorDetailView(generic.DetailView):
  model = Doctor
  def get_context_data(self, **kwargs):
      context = super().get_context_data(**kwargs)
      context['clinic_hospital_list'] = self.object.clinic_hospital.all()
      return context
  </code></pre>