Django Book 翻译
菜单>:
TOC
返回
原文:
Like ``FileField`` , but validates that the uploaded object is a valid image. It has two extra optional arguments, ``height_field`` and ``width_field`` , which, if set, will be autopopulated with the height and width of the image each time a model instance is saved.
翻译:
像 ``FileField`` 一样,只不过要验证上传的对象是一个有效的图片。它有两个额外的可选参数: ``height_field`` 和 ``width_field`` ,如果设置了的话,每当模型实例被保存的时候,这两个值就会被设置成图片的高度和宽度。
备注:
译者: