Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有模型Product和Category. Category可以有很多产品。(Product有外键category)。
Product
Category
category
我需要选择至少包含一种产品的类别。
我不知道如何在 Django 中执行此操作。请帮忙。
Category.objects.filter(product__isnull=False)