title: when in try to access mysql view using django model it throws an error
body: <p>I want to access the records in mysql view using django filter but it throws an error</p>
  
  <pre><code>class PartnerPayBillSummaryDetails(models.Model):
      invoice_no = models.CharField(max_length=200)
      invoice_id = models.IntegerField()
      partner_id = models.IntegerField()
      partner_name = models.CharField(max_length=100)
      status = models.CharField(null=False, max_length=50)
      invoice_date = models.DateField()
      bill_received_date = models.DateField()
      due_date = models.DateField()
      due_date_ageing = models.IntegerField()
      payable_amount = models.DecimalField(max_digits=20, decimal_places=2, default=0)
  
      class Meta:
          managed = False
          db_table = '66_1_partner_pay_bill_ageing_dtl'
  </code></pre>
  
  <pre><code>try:
      p = PartnerPayBillSummaryDetails.objects.all()
      print(p)
  except Exception as e:
      print(e)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>OperationalError: (1054, "Unknown column '66_1_partner_pay_bill_ageing_dtl.id' in 'field list'")
  </code></pre>