如何在我的模型中创建测试对象?我需要创建 200 个对象(自动)
class Data(models.Model):
user = models.ForeignKey(User, unique=True)
name = models.CharField(max_length=255)
is_good = models.BooleanField(default=False, null=True)
date = models.DateTimeField(auto_now_add=True)
reminder = models.DateTimeField()