摘要: 比如统计某个会员有多少条留言? def follow_num(self): num=Guestbook.objects.filter(user=self.pk,status=True).aggregate(c=Count('user__membername')) return num['c'] 阅读全文
posted @ 2023-05-22 13:51 super_ip 阅读(5) 评论(0) 推荐(0) 编辑