I am writing a simple Django App, the model is like this:
class MyPosts(models.Model):
content = models.TextField()
class MyPostComments(models.Model):
mypost = models.ForeignKey(MyPosts)
comment = models.TextField()
Now I need to query the top10 most-commented posts.
After look at the online document for hours I couldn't find out a way to do
it.
Any suggestions?
--
http://www.2maomao.com/blog
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---