Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
332c30af
Commit
332c30af
authored
Aug 14, 2015
by
Ollie Walsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lint
parent
3d0292e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
+1
-3
rest_framework/utils/breadcrumbs.py
+0
-3
tests/test_utils.py
+1
-0
No files found.
rest_framework/utils/breadcrumbs.py
View file @
332c30af
...
...
@@ -9,11 +9,8 @@ def get_breadcrumbs(url, request=None):
tuple of (name, url).
"""
from
rest_framework.reverse
import
preserve_builtin_query_params
from
rest_framework.settings
import
api_settings
from
rest_framework.views
import
APIView
view_name_func
=
api_settings
.
VIEW_NAME_FUNCTION
def
breadcrumbs_recursive
(
url
,
breadcrumbs_list
,
prefix
,
seen
):
"""
Add tuples of (name, url) to the breadcrumbs list,
...
...
tests/test_utils.py
View file @
332c30af
...
...
@@ -31,6 +31,7 @@ class NestedResourceRoot(APIView):
class
NestedResourceInstance
(
APIView
):
pass
class
CustomNameResourceInstance
(
APIView
):
def
get_view_name
(
self
):
return
"Foo"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment