Created
May 13, 2014 11:50
-
-
Save almost/b9bcbe16ef588b873bee to your computer and use it in GitHub Desktop.
Another version of https://gist.github.com/andybak/033ea14fe76d6ec0e0a7
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
item_ids = request.QUERY_PARAMS.get('item_models', '').split(',') | |
items = ItemModel.objects.filter(id__in=item_ids) | |
result = dict( | |
(m.pk, {'lowest_stock': m.get_lowest_stock_for_subbooking(subbooking)}) | |
for m in items} | |
return Response(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment