def make_model_instances(number):
    for _ in range(number):
        TestModel.objects.create()
    return TestModel.objects.all()
Make a ``number`` of test model instances and return a queryset.
dataset/ETHPy150Open shtalinberg/django-el-pagination/el_pagination/tests/__init__.py/make_model_instances