Skip to content

Commit

Permalink
docs: Fix a few typos
Browse files Browse the repository at this point in the history
There are small typos in:
- wagtail/contrib/modeladmin/options.py
- wagtail/models/__init__.py

Fixes:
- Should read `supplied` rather than `suppled`.
- Should read `maintaining` rather than `maintining`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
  • Loading branch information
timgates42 authored and lb- committed Sep 10, 2022
1 parent 5dad39f commit 519caf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wagtail/contrib/modeladmin/options.py
Expand Up @@ -337,7 +337,7 @@ def get_extra_search_kwargs(self, request, search_term):
def get_extra_attrs_for_row(self, obj, context):
"""
Return a dictionary of HTML attributes to be added to the `<tr>`
element for the suppled `obj` when rendering the results table in
element for the supplied `obj` when rendering the results table in
`index_view`. `data-object-pk` is already added by default.
"""
return {}
Expand Down
2 changes: 1 addition & 1 deletion wagtail/models/__init__.py
Expand Up @@ -2436,7 +2436,7 @@ def with_content_json(self, content):
obj.depth = self.depth
obj.numchild = self.numchild

# Update url_path to reflect potential slug changes, but maintining the page's
# Update url_path to reflect potential slug changes, but maintaining the page's
# existing tree position
obj.set_url_path(self.get_parent())

Expand Down

0 comments on commit 519caf2

Please sign in to comment.