Skip to content

Commit

Permalink
Fix breadcrumb rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed May 7, 2013
1 parent ed2cf18 commit d7c0822
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/topics/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ You can determine your currently installed version using `pip freeze`:

## 2.3.x series

### 2.3.1

**Date**: 7th May 2013

* Bugfix: Fix breadcrumb rendering issue.

### 2.3.0

**Date**: 7th May 2013
Expand Down
2 changes: 1 addition & 1 deletion rest_framework/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.3.0'
__version__ = '2.3.1'

VERSION = __version__ # synonym

Expand Down
3 changes: 2 additions & 1 deletion rest_framework/utils/breadcrumbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def breadcrumbs_recursive(url, breadcrumbs_list, prefix, seen):
else:
# Check if this is a REST framework view,
# and if so add it to the breadcrumbs
if issubclass(getattr(view, 'cls', None), APIView):
cls = getattr(view, 'cls', None)
if cls is not None and issubclass(cls, APIView):
# Don't list the same view twice in a row.
# Probably an optional trailing slash.
if not seen or seen[-1] != view:
Expand Down

0 comments on commit d7c0822

Please sign in to comment.