class documentation

class ImageField(FileField):

View In Hierarchy

Undocumented

Method to​_python Check that the file-upload field data contains a valid image (GIF, JPG, PNG, etc. -- whatever Pillow supports).
Method widget​_attrs Given a Widget instance (not a Widget class), return a dictionary of any HTML attributes that should be added to the Widget, based on this Field.
Class Variable default​_error​_messages Undocumented
Class Variable default​_validators Undocumented

Inherited from FileField:

Method __init__ Undocumented
Method bound​_data Return the value that should be shown for this field on render of a bound form, given the submitted POST data for the field and the initial data, if any.
Method clean Validate the given value and return its "cleaned" value as an appropriate Python object. Raise ValidationError for any errors.
Method has​_changed Return True if data differs from initial.
Instance Variable allow​_empty​_file Undocumented
Instance Variable max​_length Undocumented

Inherited from Field (via FileField):

Method __deepcopy__ Undocumented
Method get​_bound​_field Return a BoundField instance that will be used when accessing the form field in a template.
Method prepare​_value Undocumented
Method run​_validators Undocumented
Method validate Undocumented
Class Variable empty​_values Undocumented
Instance Variable disabled Undocumented
Instance Variable error​_messages Undocumented
Instance Variable help​_text Undocumented
Instance Variable initial Undocumented
Instance Variable label Undocumented
Instance Variable label​_suffix Undocumented
Instance Variable localize Undocumented
Instance Variable required Undocumented
Instance Variable show​_hidden​_initial Undocumented
Instance Variable validators Undocumented
Instance Variable widget Undocumented
def to_python(self, data):
Check that the file-upload field data contains a valid image (GIF, JPG, PNG, etc. -- whatever Pillow supports).
def widget_attrs(self, widget):
Given a Widget instance (not a Widget class), return a dictionary of any HTML attributes that should be added to the Widget, based on this Field.
default_error_messages =
default_validators =