summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorLiyang Zhang <sudo.liyang@gmail.com>2023-03-20 02:07:23 -0500
committerGitHub <noreply@github.com>2023-03-20 08:07:23 +0100
commitf9f9215d3e5500d9a8d0bec0936480ba34d42e88 (patch)
treed5b1b014c7dd155ea466275cb37d906151d3ae13 /django
parentb295b311712b598c053f7fa8cf6e6882217e35d9 (diff)
downloaddjango-f9f9215d3e5500d9a8d0bec0936480ba34d42e88.tar.gz
Fixed some typos in comments, docstrings, and tests.
Diffstat (limited to 'django')
-rw-r--r--django/core/files/utils.py2
-rw-r--r--django/db/models/sql/query.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/django/core/files/utils.py b/django/core/files/utils.py
index 85342b2f3f..611f932f6e 100644
--- a/django/core/files/utils.py
+++ b/django/core/files/utils.py
@@ -26,7 +26,7 @@ def validate_file_name(name, allow_relative_path=False):
class FileProxyMixin:
"""
- A mixin class used to forward file methods to an underlaying file
+ A mixin class used to forward file methods to an underlying file
object. The internal file object has to be called "file"::
class FileProxy(FileProxyMixin):
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index 0aa07e0b99..103fffa47d 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -699,7 +699,7 @@ class Query(BaseExpression):
# All concrete fields that are not part of the defer mask must be
# loaded. If a relational field is encountered it gets added to the
# mask for it be considered if `select_related` and the cycle continues
- # by recursively caling this function.
+ # by recursively calling this function.
for field in opts.concrete_fields:
field_mask = mask.pop(field.name, None)
if field_mask is None: