【发布时间】:2021-10-12 11:05:03
【问题描述】:
我有以下型号
class Test(models.Model):
photo = models.ImageField(
upload_to="profile_pics", default="profile_pics/blank-avatar.png"
)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
如何使用工厂男孩向照片添加随机图像
【问题讨论】:
标签: django factory-boy