Changes between Initial Version and Version 1 of Ticket #28297


Ignore:
Timestamp:
Jun 10, 2017, 11:52:30 AM (7 years ago)
Author:
Marcus Renno
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28297 – Description

    initial v1  
    55
    66{{{
    7         ingredients = ['tomato']
    8         self.queryset = Recipe.objects.all()
    9         self.queryset = self.queryset.annotate(total=Count('steps__ingredients', distinct=True))
    10         self.queryset = self.queryset.filter(steps__ingredients__ingredient__name__in=ingredients)
    11         self.queryset = self.queryset.annotate(available=Count('steps__ingredients', distinct=True))
    12         self.queryset = self.queryset.filter(total=F('available'))
     7ingredients = ['tomato']
     8self.queryset = Recipe.objects.all()
     9self.queryset = self.queryset.annotate(total=Count('steps__ingredients', distinct=True))
     10self.queryset = self.queryset.filter(steps__ingredients__ingredient__name__in=ingredients)
     11self.queryset = self.queryset.annotate(available=Count('steps__ingredients', distinct=True))
     12self.queryset = self.queryset.filter(total=F('available'))
    1313}}}
    1414
Back to Top