summaryrefslogtreecommitdiff
path: root/django/db/models/fields/files.py
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-07-18 15:37:14 +0200
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 10:09:43 -0300
commit1ecf6889cabc9f3f60d3fdd651468cddd8f4da6e (patch)
tree77eebf89eaf5f1ee6f5947a962caa67b5cca7f4b /django/db/models/fields/files.py
parent1909108f9f0f2a91c1ec0fcdb65b01f58743a871 (diff)
Removed double spaces after periods and within phrases.
Diffstat (limited to 'django/db/models/fields/files.py')
-rw-r--r--django/db/models/fields/files.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/django/db/models/fields/files.py b/django/db/models/fields/files.py
index 03c3939a4e..8f807b1156 100644
--- a/django/db/models/fields/files.py
+++ b/django/db/models/fields/files.py
@@ -388,10 +388,10 @@ class ImageFileDescriptor(FileDescriptor):
# To prevent recalculating image dimensions when we are instantiating
# an object from the database (bug #11084), only update dimensions if
- # the field had a value before this assignment. Since the default
+ # the field had a value before this assignment. Since the default
# value for FileField subclasses is an instance of field.attr_class,
# previous_file will only be None when we are called from
- # Model.__init__(). The ImageField.update_dimension_fields method
+ # Model.__init__(). The ImageField.update_dimension_fields method
# hooked up to the post_init signal handles the Model.__init__() cases.
# Assignment happening outside of Model.__init__() will trigger the
# update right here.
@@ -476,8 +476,8 @@ class ImageField(FileField):
Update field's width and height fields, if defined.
This method is hooked up to model's post_init signal to update
- dimensions after instantiating a model instance. However, dimensions
- won't be updated if the dimensions fields are already populated. This
+ dimensions after instantiating a model instance. However, dimensions
+ won't be updated if the dimensions fields are already populated. This
avoids unnecessary recalculation when loading an object from the
database.
@@ -505,9 +505,9 @@ class ImageField(FileField):
)
# When both dimension fields have values, we are most likely loading
# data from the database or updating an image field that already had
- # an image stored. In the first case, we don't want to update the
+ # an image stored. In the first case, we don't want to update the
# dimension fields because we are already getting their values from the
- # database. In the second case, we do want to update the dimensions
+ # database. In the second case, we do want to update the dimensions
# fields and will skip this return because force will be True since we
# were called from ImageFileDescriptor.__set__.
if dimension_fields_filled and not force: