Changes between Version 4 and Version 5 of Ticket #28297
- Timestamp:
- Jun 10, 2017, 11:24:48 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28297 – Description
v4 v5 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') 32 34 }}} 33 35