Skip to content

Commit

Permalink
Clarified when ImageField attributes are set.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-parton authored and sarahboyce committed May 2, 2024
1 parent 160c0ab commit 914bf69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/ref/models/fields.txt
Expand Up @@ -1342,13 +1342,13 @@ following optional arguments:

.. attribute:: ImageField.height_field

Name of a model field which will be auto-populated with the height of the
image each time the model instance is saved.
Name of a model field which is auto-populated with the height of the image
each time an image object is set.

.. attribute:: ImageField.width_field

Name of a model field which will be auto-populated with the width of the
image each time the model instance is saved.
Name of a model field which is auto-populated with the width of the image
each time an image object is set.

Requires the `Pillow`_ library.

Expand Down

0 comments on commit 914bf69

Please sign in to comment.