Changes between Version 5 and Version 6 of Ticket #28297


Ignore:
Timestamp:
Jun 10, 2017, 11:25:51 PM (7 years ago)
Author:
Marcus Renno
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28297 – Description

    v5 v6  
    3030self.queryset = self.queryset.annotate(available=Count('steps__ingredients', distinct=True))
    3131self.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')
    3432}}}
    3533
Back to Top