Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(7) | Call(7) | Derive(0) | Import(0)
src/d/j/django-pstore-1.0.3/pstore/views_js.py django-pstore(Download)
if v: # Listify. qs = list(qs.values_list('id', 'identifier')) # Fetch the related allow lists in a single query. allowed = ObjectPerm.objects.filter(object__id__in=[i[0] for i in qs]) allowed = list(allowed.values_list('object', 'user', 'can_write'))
else: result = dict((i, True) for i in qs.values_list('identifier', flat=True)) return JsonResponse(request, result)
src/p/s/pstore-HEAD/pstore/views_js.py pstore(Download)
if v: # Listify. qs = list(qs.values_list('id', 'identifier')) # Fetch the related allow lists in a single query. allowed = ObjectPerm.objects.filter(object__id__in=[i[0] for i in qs]) allowed = list(allowed.values_list('object', 'user', 'can_write'))
else: result = dict((i, True) for i in qs.values_list('identifier', flat=True)) return JsonResponse(request, result)
src/s/k/skoljka-HEAD/apps/search/utils.py skoljka(Download)
if kwargs.get('groups'): ids = ','.join([str(x) for x in tasks.values_list('id', flat=True)]) group_ids = ','.join([str(x.id) for x in kwargs['groups']]) statuses = '%d,%d' % (STATUS['as_solved'], STATUS['submitted'])