Coverage for rest_framework/utils/breadcrumbs : 100%
![](keybd_closed.png)
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Given a url returns a list of breadcrumbs, which are each a tuple of (name, url). """
""" Add tuples of (name, url) to the breadcrumbs list, progressively chomping off parts of the url. """
else: # Check if this is a REST framework view, # and if so add it to the breadcrumbs # Don't list the same view twice in a row. # Probably an optional trailing slash.
# All done
# Drop trailing slash off the end and continue to try to # resolve more breadcrumbs
# Drop trailing non-slash off the end and continue to try to # resolve more breadcrumbs
|