from django.db.models import Count, OuterRef, Subquery articles_of_type_a = Article.objects.filter(blog=OuterRef('id'), type='a') ...
確定! 回上一頁