class BookRating(models.Model):
    book = models.ForeignKey(Book)
aspect = models.ForeignKey(Aspect)
rating = models.RatingField()

def rate(book, aspect):
    pass
Database Modeling with multiple many-to-many relations in Django