|
|
@ -34,8 +34,8 @@ class PlatformGenerator(FakeDataGenerator): |
|
|
|
tp = choice(self.category_type[category].choices) |
|
|
|
tp = choice(self.category_type[category].choices) |
|
|
|
data = { |
|
|
|
data = { |
|
|
|
'name': forgery_py.name.company_name(), |
|
|
|
'name': forgery_py.name.company_name(), |
|
|
|
'category': choice(self.categories), |
|
|
|
'category': category, |
|
|
|
'type': tp |
|
|
|
'type': tp[0] |
|
|
|
} |
|
|
|
} |
|
|
|
platforms.append(Platform(**data)) |
|
|
|
platforms.append(Platform(**data)) |
|
|
|
Platform.objects.bulk_create(platforms, ignore_conflicts=True) |
|
|
|
Platform.objects.bulk_create(platforms, ignore_conflicts=True) |
|
|
|