# Count Avg Sum etc. take a distinct argument for finding unique values
p = Project.objects.all().annotate(Avg('unit__name', distinct=True))
class Getdata(models.Model):
title = models.CharField(max_length=255)
state = models.CharField(max_length=2, choices=STATE, default="0")
name = models.ForeignKey(School)
created_by = models.ForeignKey(profile)
class Meta:
unique_together = ["title", "state", "name"]
models.Shop.objects.order_by().values('city').distinct()