Changes between Version 5 and Version 6 of Ticket #28297
- Timestamp:
- Jun 10, 2017, 11:25:51 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28297 – Description
v5 v6 30 30 self.queryset = self.queryset.annotate(available=Count('steps__ingredients', distinct=True)) 31 31 self.queryset = self.queryset.filter(total=F('available')) 32 #I feel like this order_by 'pk' or 'id' is bugging the query. If I remove this order_by I couldn't replicate the problem yet. As I said it doesn't happen 100%.33 return self.queryset.order_by('pk')34 32 }}} 35 33