Skip to content

Commit

Permalink
docs: Fix a few typos (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
timgates42 committed Sep 4, 2022
1 parent c816887 commit 06472fc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion django_filters/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ class LookupChoiceFilter(Filter):
A combined filter that allows users to select the lookup expression from a dropdown.
* ``lookup_choices`` is an optional argument that accepts multiple input
formats, and is ultimately normlized as the choices used in the lookup
formats, and is ultimately normalized as the choices used in the lookup
dropdown. See ``.get_lookup_choices()`` for more information.
* ``field_class`` is an optional argument that allows you to set the inner
Expand Down
2 changes: 1 addition & 1 deletion tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ def test_filtering(self):
self.assertEqual(qs, result)

def test_filtering_skipped_with_out_of_range_value(self):
# Field validation should prevent this from occuring
# Field validation should prevent this from occurring
qs = mock.Mock(spec=[])
f = DateRangeFilter()
with self.assertRaises(AssertionError):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_filterset.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class Meta:

def test_meta_fields_invalid_lookup(self):
# We want to ensure that non existent lookups (or just simple misspellings)
# throw a useful exception containg the field and lookup expr.
# throw a useful exception containing the field and lookup expr.
msg = "Unsupported lookup 'flub' for field 'tests.User.username'."

with self.assertRaisesMessage(FieldLookupError, msg):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def test_lazy_relationship_not_ready(self):
"""
This simulates trying to create a FilterSet before the app registry has
been populated. Lazy relationships have not yet been resolved from their
strings into their remote model referencess.
strings into their remote model references.
"""

class TestModel(models.Model):
Expand Down Expand Up @@ -248,7 +248,7 @@ def test_resolve_plain_lookups(self):
model_field = User._meta.get_field("username")
lookups = model_field.class_lookups.keys()

# This is simple - the final ouput of an untransformed field is itself.
# This is simple - the final output of an untransformed field is itself.
# The lookups are the default lookups registered to the class.
for term in lookups:
field, lookup = resolve_field(model_field, term)
Expand Down

0 comments on commit 06472fc

Please sign in to comment.