我在使用以下反向 FK 查找时遇到问题:
class OrderItem(models.Model):
order = models.ForeignKey(Order, related_name='items')
title = models.ForeignKey(Title, related_name='order_items')
class OrderItemDelivery(models.Model):
order_item = models.ForeignKey(OrderItem, related_name='deliveries')
stage = models.CharField(max_length=20)
我将如何执行以下操作:OrderItem.objects.filter(order_item_delivery__stage='Beginning')
?