class Rating(models.Model):
    content = models.OneToOneField(Content, primary_key=True)
ip = models.CharField(max_length=200, blank=True)
How to make uniques in Django Models? And also index a column in Django