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