Skip to content

Commit

Permalink
Small docs fixes
Browse files Browse the repository at this point in the history
em1208 committed Aug 3, 2024
1 parent 8000eeb commit 226e2f0
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -154,7 +154,7 @@ class AsyncView(APIView):
return await serializer.adata
```

# Async generics
# Async Generics

models.py

2 changes: 1 addition & 1 deletion adrf/shortcuts.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
try:
from django.shortcuts import aget_object_or_404
except ImportError:
# NOTE aget_object_or_404 defined since Django 5.
# NOTE aget_object_or_404 is defined since Django 5.
# This function will be removed when support for Django 4 is dropped.
async def aget_object_or_404(klass, *args, **kwargs):
"""See get_object_or_404()."""
2 changes: 1 addition & 1 deletion adrf/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import inspect


# NOTE This function has been taken from the python library and modified
# NOTE This function was taken from the python library and modified
# to allow an exclusion list and avoid recursion errors.
def getmembers(object, predicate, exclude_names=[]):
results = []

0 comments on commit 226e2f0

Please sign in to comment.