title: Saving Django models data to Database for derived class
body: <p>I have below models</p>
  <pre><code>class Student(models.Model):
      fname=models.CharField(max_length=100)
      mname=models.CharField(max_length=100)
      lname=models.CharField(max_length=100)
      dob=models.DateField()
  
  
  class StudentDetail(Student):
      Subject=models.CharField(max_length=50)
      marks=models.IntegerField()
  </code></pre>
  <p>I am able to create Student objects. I try to add StudentDetail as below</p>
  <pre><code>student=Student()
  student.fname='fname text'
  student.lname='lname text'
  student.mname='mname text'
  student.dob='2020-01-01'
  student.save()
  
  detail1=StudentDetail()
  detail1.subject='subject text'
  detail1.marks=78
  detail1.save()
  </code></pre>
  <p>the last statement gives error. How to save StudentDetail in database.</p>