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