Ticket #7968: modelforms-doc-imagefields.diff
File modelforms-doc-imagefields.diff, 1.2 KB (added by , 16 years ago) |
---|
-
docs/modelforms.txt
55 55 ``FilePathField`` ``CharField`` 56 56 ``FloatField`` ``FloatField`` 57 57 ``ForeignKey`` ``ModelChoiceField`` (see below) 58 ``ImageField`` ``ImageField`` 58 ``ImageField`` ``ImageField`` (see below) 59 59 ``IntegerField`` ``IntegerField`` 60 60 ``IPAddressField`` ``IPAddressField`` 61 61 ``ManyToManyField`` ``ModelMultipleChoiceField`` (see … … 112 112 field has ``blank=False`` and an explicit ``default`` value (the 113 113 ``default`` value will be initially selected instead). 114 114 115 When ``ImageField`` or ``FileField`` fields are left blank by the user, they 116 will be skipped during a ``save()``. Any existing image or file will remain. 117 We suggest you use a BooleanField to allow the user to remove an existing 118 image or file. 119 115 120 Finally, note that you can override the form field used for a given model 116 121 field. See `Overriding the default field types`_ below. 117 122