def handle(self, *args, **options): faker = Faker("pl_PL") for i in range(10): author = Author() author.first_name = faker.first_name() author.last_name = faker.last_name() author.birthday = faker.date_of_birth() author.save() self.stdout.write(self.style.SUCCESS(f'Create: {str(author)}'))