db.models.ImageField

class ImageField(upload_to=None, height_field=None, width_field=None, max_length=100, **options) [source]

Inherits all attributes and methods from FileField, but also validates that the uploaded object is a valid image.

In addition to the special attributes that are available for FileField, an ImageField also has height and width attributes.

To facilitate querying on those attributes, ImageField has two extra optional arguments:

doc_Django
2016-10-09 18:35:47
Comments
Leave a Comment

Please login to continue.