models.py
class Category(models.Model):
name=models.CharField(max_length=50,null=True,verbose_name='名称')
...
class Article(models.Model):
name=models.CharField(max_length=100,null=True,verbose_name="书名")
author=models.ForeignKey(Author,verbose_name="作者")
category=models.ForeignKey(Category,verbose_name="归属栏目")
...
求教 如何随机查询出某个分类下的N篇文章,谢谢~!