Skip to content

Commit a052bd3

Browse files
authored
Merge pull request #2675 from timgates42/bugfix_typos
docs: Fix a few typos
2 parents 1790f3d + 19a09d3 commit a052bd3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/upgrade.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ MongoDB connection before shipping v0.10.8 in production.
7777
******
7878

7979
`QuerySet.aggregate_sum` and `QuerySet.aggregate_average` are dropped. Use
80-
`QuerySet.sum` and `QuerySet.average` instead which use the aggreation framework
80+
`QuerySet.sum` and `QuerySet.average` instead which use the aggregation framework
8181
by default from now on.
8282

8383
0.9.0

tests/document/test_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ class UserSubscription(Document):
17351735

17361736
user = User.objects.first()
17371737
# Even if stored as ObjectId's internally mongoengine uses DBRefs
1738-
# As ObjectId's aren't automatically derefenced
1738+
# As ObjectId's aren't automatically dereferenced
17391739
assert isinstance(user._data["orgs"][0], DBRef)
17401740
assert isinstance(user.orgs[0], Organization)
17411741
assert isinstance(user._data["orgs"][0], Organization)

tests/fields/test_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class Person(Document):
126126

127127
def test_default_values_set_to_None(self):
128128
"""Ensure that default field values are used even when
129-
we explcitly initialize the doc with None values.
129+
we explicitly initialize the doc with None values.
130130
"""
131131

132132
class Person(Document):

tests/fields/test_file_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ class TestFile(Document):
328328
assert len(list(files)) == 1
329329
assert len(list(chunks)) == 1
330330

331-
# Deleting the docoument should delete the files
331+
# Deleting the document should delete the files
332332
testfile.delete()
333333

334334
files = db.fs.files.find()

tests/queryset/test_geo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def test_2dsphere_geo_within_polygon(self):
237237
assert events.count() == 0
238238

239239
def test_2dsphere_near_and_min_max_distance(self):
240-
"""Ensure "min_distace" and "max_distance" operators work well
240+
"""Ensure "min_distance" and "max_distance" operators work well
241241
together with the "near" operator in a 2dsphere index.
242242
"""
243243
event1, event2, event3 = self._create_event_data(point_field_class=PointField)

0 commit comments

Comments
 (0)