Skip to content

Commit 332c30a

Browse files
committed
Lint
1 parent 3d0292e commit 332c30a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rest_framework/utils/breadcrumbs.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ def get_breadcrumbs(url, request=None):
99
tuple of (name, url).
1010
"""
1111
from rest_framework.reverse import preserve_builtin_query_params
12-
from rest_framework.settings import api_settings
1312
from rest_framework.views import APIView
1413

15-
view_name_func = api_settings.VIEW_NAME_FUNCTION
16-
1714
def breadcrumbs_recursive(url, breadcrumbs_list, prefix, seen):
1815
"""
1916
Add tuples of (name, url) to the breadcrumbs list,

tests/test_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class NestedResourceRoot(APIView):
3131
class NestedResourceInstance(APIView):
3232
pass
3333

34+
3435
class CustomNameResourceInstance(APIView):
3536
def get_view_name(self):
3637
return "Foo"
@@ -89,7 +90,7 @@ def test_resource_instance_customname_breadcrumbs(self):
8990
('Resource Root', '/resource/'),
9091
('Foo', '/resource/customname')
9192
]
92-
)
93+
)
9394

9495
def test_nested_resource_breadcrumbs(self):
9596
url = '/resource/123/'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy