diff options
| author | Tom Christie | 2012-09-19 18:48:59 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-09-19 18:48:59 +0100 | 
| commit | cb8a8e98ed42f5053b9752064aa8c4094ee5f754 (patch) | |
| tree | 6f36ff0ec29bedb4029c0e9f8a4269dcf076add0 | |
| parent | 9921b6bd73c5256a3b65c2a5106717ce0fc8f0cf (diff) | |
| download | django-rest-framework-cb8a8e98ed42f5053b9752064aa8c4094ee5f754.tar.bz2 | |
Dont strip final '/'
| -rw-r--r-- | djangorestframework/utils/breadcrumbs.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/djangorestframework/utils/breadcrumbs.py b/djangorestframework/utils/breadcrumbs.py index 71284380..ccee0081 100644 --- a/djangorestframework/utils/breadcrumbs.py +++ b/djangorestframework/utils/breadcrumbs.py @@ -29,6 +29,6 @@ def get_breadcrumbs(url):          # Drop trailing non-slash off the end and continue to try to resolve more breadcrumbs          return breadcrumbs_recursive(url[:url.rfind('/') + 1], breadcrumbs_list, prefix) -    prefix = get_script_prefix() +    prefix = get_script_prefix().rstrip('/')      url = url[len(prefix):]      return breadcrumbs_recursive(url, [], prefix) | 
