我把这个放在我的模型.py公司名称:
class MyModel(models.Model)
imgA = ThumbnailerImageField(upload_to="site_images/",
null=True, blank=True)
imgB = ThumbnailerImageField(upload_to="site_images/",
null=True, blank=True)
我想把imgA复制到imgB,所以我尝试了:
^{pr2}$函数运行时没有出现错误,但ThumbnailerImageField没有被复制。有什么方法可以达到这个目的?在
解决方案:必须使用get\u thumbnailer()方法。开始吧:
More details about get_thumbnailer()
相关问题 更多 >
编程相关推荐