Created
August 31, 2018 14:29
-
-
Save jordotech/7a7add9ba211540c4583118bac76f796 to your computer and use it in GitHub Desktop.
which orderitems are kitparts in the queryset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
order_item_ids = [q.get('id') for q in queryset] | |
kitpart_orderitem_ids = [oid.get('item') for oid in OrderItemDetail.objects.values('item').filter(name='kitparent', id__in=order_item_ids)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment