Hi folks!
In this situation I have two models, Comment and Score. The relationship is defined in the Score model, like so:
class Comment(models.Model):
content = TextField()
...
class Score(models.Model):
comment = models.ForeignKey(Comment)
value = models.IntegerField()
My question is: How do I construct a queryset that returns all Comments and is ordered by the value of Score?
Thanks in advance!
Martin