title: How to create a general class for other class can have the same model as well
body: <p>I am new to Python and Django platforms. I am trying to design a general class so that other classes can use the general class to create the same model type. To explain better, I give an example </p>
  
  <p>Let's say my general class is</p>
  
  <pre><code>class Person(models.Model):
   name = models.CharField(max_length=20)
   lastname=models.CharField(max_length=20)
   job=models.CharField(max_length=20)
   salary=models.IntegerField()
  </code></pre>
  
  <p>I want to have a exactly same table with Person class for each person that I create. </p>
  
  <p>In my mind is something like that.... </p>
  
  <pre><code>Class Person1(models.Model) 
  Person()
  Class Person2(models.Model) 
  Person()
  </code></pre>
  
  <p>So, thus each person table will have same model type with Person class. Could you please help me how to do that? OR Is there a way to do that ?  </p>