Пример #1
0
 def setUp(self):
     super(ApproximateCountTests, self).setUp()
     Author.objects.bulk_create([Author() for i in range(10)])
Пример #2
0
 def setUp(self):
     super(FoundRowsTests, self).setUp()
     Author.objects.bulk_create([Author() for i in range(10)])
Пример #3
0
 def setUp(self):
     super(SmartIteratorTests, self).setUp()
     Author.objects.bulk_create([Author(id=i + 1) for i in range(10)])