8000 Fix breadcrumb rendering issue · matthiask/django-rest-framework@d7c0822 · GitHub
[go: up one dir, main page]

Skip to content

Commit d7c0822

Browse files
committed
Fix breadcrumb rendering issue
1 parent ed2cf18 commit d7c0822

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

docs/topics/release-notes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ You can determine your currently installed version using `pip freeze`:
4040

4141
## 2.3.x series
4242

43+
### 2.3.1
44+
45+
**Date**: 7th May 2013
46+
47+
* Bugfix: Fix breadcrumb rendering issue.
48+
4349
### 2.3.0
4450

4551
**Date**: 7th May 2013

rest_framework/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '2.3.0'
1+
__version__ = '2.3.1'
22

33
VERSION = __version__ # synonym
44

rest_framework/utils/breadcrumbs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def breadcrumbs_recursive(url, breadcrumbs_list, prefix, seen):
2424
else:
2525
# Check if this is a REST framework view,
2626
# and if so add it to the breadcrumbs
27-
if issubclass(getattr(view, 'cls', None), APIView):
27+
cls = getattr(view, 'cls', None)
28+
if cls is not None and issubclass(cls, APIView):
2829
# Don't list the same view twice in a row.
2930
# Probably an optional trailing slash.
3031
if not seen or seen[-1] != view:

0 commit comments

Comments
 (0)
0