from foo.models import *
objs=CharPkModel.objects.bulk_create([CharPkModel(id=i) for i in '17 12 2001'.split()])
CharFkRelatedModel.objects.bulk_create([CharFkRelatedModel(model=i) for i in (objs[0], objs[0], objs[1])])
CharPkModel.objects.filter(children__isnull=False).values_list('id', flat=True)
How Has This Been Tested?
make ci
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
Fixes TODO item in tests/test_filters.py
Motivation and Context
Django get result of:
['17', '17', '12']
But test_mysql_myisam get result of['12', '17', '17']
So I add.order_by("id")
To reproduce Django result:
How Has This Been Tested?
make ci
Checklist: