Changes between Version 1 and Version 4 of Ticket #28297


Ignore:
Timestamp:
Jun 10, 2017, 10:26:19 PM (7 years ago)
Author:
Marcus Renno
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28297 – Description

    v1 v4  
    1 Sometimes when I run a set of filter/annotation the result is different for the same variables.
     1Sometimes when I run a set of filter/annotation the result is different for the same variables. I'm using Django 1.11.2
     2
     3The models used (simplified)
     4
     5
     6{{{
     7class Recipe(models.Model):
     8  name = models.CharField(max_length=50)
     9  steps = models.ManyToManyField(StepRecipe)
     10
     11class StepRecipe(models.Model):
     12  ingredients = models.ManyToManyField(RecipeIngredient)
     13
     14class RecipeIngredient(models.Model):
     15  ingredient = models.ForeignKey(Ingredient)
     16
     17class Ingredient(models.Model):
     18  name = models.CharField(max_length=50)
     19
     20}}}
    221
    322This is the queryset command:
Back to Top