style tweaks, add one more assertion

This commit is contained in:
AlanCoding
2016-03-13 22:39:52 -04:00
parent 39c9563352
commit 6996ea22b0
2 changed files with 3 additions and 4 deletions

View File

@@ -641,8 +641,8 @@ class OrganizationList(ListCreateAPIView):
# the case of deleted (and purged) inventory
db_JT_results = self.request.user.get_queryset(JobTemplate)\
.filter(inventory_id__in=inv_qs.values_list('pk', flat=True))\
.values(JT_reference).annotate(Count(JT_reference)).\
order_by(JT_reference)
.values(JT_reference).annotate(Count(JT_reference))\
.order_by(JT_reference)
# Produce counts of m2m relationships
project_qs = self.request.user.get_queryset(Project)