Skip to content

Commit

Permalink
remove ... in rest_framework.txt to make life easy
Browse files Browse the repository at this point in the history
Someone silly like me, who just copies and posts the code snippet with the ..., will get an exception `AttributeError: 'ellipsis' object has no attribute 'rsplit'`. So let's just remove it and make life easy.
  • Loading branch information
vainl authored Mar 26, 2024
1 parent 690a906 commit d4c42f4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/guide/rest_framework.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@ If you want to use the django-filter backend by default, add it to the ``DEFAULT

# settings.py
INSTALLED_APPS = [
...
'rest_framework',
'django_filters',
]

REST_FRAMEWORK = {
'DEFAULT_FILTER_BACKENDS': (
'django_filters.rest_framework.DjangoFilterBackend',
...
),
}

Expand Down

0 comments on commit d4c42f4

Please sign in to comment.