1class Getdata(models.Model):
2 title = models.CharField(max_length=255)
3 state = models.CharField(max_length=2, choices=STATE, default="0")
4 name = models.ForeignKey(School)
5 created_by = models.ForeignKey(profile)
6 class Meta:
7 unique_together = ["title", "state", "name"]
8