1class BaseModel(models.Model): # base class should subclass 'django.db.models.Model'
2
3 creation_date = models.DateTimeField(..) # define the common field1
4 validity_start_date = models.DateTimeField(..) # define the common field2
5 validity_end_date = models.DateTimeField(..) # define the common field3
6
7 class Meta:
8 abstract=True # Set this model as Abstract