from django.urls import reverse
from django.utils.encoding import force_str

from .list import ListBreadcrumbMixin
from ..utils import action_view_name


def _model_repr(instance):
    return force_str(instance)


class DetailBreadcrumbMixin(ListBreadcrumbMixin):
    # Home / object List / object
    @property
    def crumbs(self):
        return super(DetailBreadcrumbMixin, self).crumbs + [
            (_model_repr, self._detail_view_url),
        ]

    def _detail_view_url(self, instance):
        return reverse(action_view_name(instance, self.detail_view_suffix), kwargs={'pk': instance.pk})

a33b91dba8ddaeebffdfc826b75d14b28d33f3e8
<mask token>


class DetailBreadcrumbMixin(ListBreadcrumbMixin):

    @property
    def crumbs(self):
        return super(DetailBreadcrumbMixin, self).crumbs + [(_model_repr,
            self._detail_view_url)]
    <mask token>

<mask token>


class DetailBreadcrumbMixin(ListBreadcrumbMixin):

    @property
    def crumbs(self):
        return super(DetailBreadcrumbMixin, self).crumbs + [(_model_repr,
            self._detail_view_url)]

    def _detail_view_url(self, instance):
        return reverse(action_view_name(instance, self.detail_view_suffix),
            kwargs={'pk': instance.pk})

<mask token>


def _model_repr(instance):
    return force_str(instance)


class DetailBreadcrumbMixin(ListBreadcrumbMixin):

    @property
    def crumbs(self):
        return super(DetailBreadcrumbMixin, self).crumbs + [(_model_repr,
            self._detail_view_url)]

    def _detail_view_url(self, instance):
        return reverse(action_view_name(instance, self.detail_view_suffix),
            kwargs={'pk': instance.pk})

from django.urls import reverse
from django.utils.encoding import force_str
from .list import ListBreadcrumbMixin
from ..utils import action_view_name


def _model_repr(instance):
    return force_str(instance)


class DetailBreadcrumbMixin(ListBreadcrumbMixin):

    @property
    def crumbs(self):
        return super(DetailBreadcrumbMixin, self).crumbs + [(_model_repr,
            self._detail_view_url)]

    def _detail_view_url(self, instance):
        return reverse(action_view_name(instance, self.detail_view_suffix),
            kwargs={'pk': instance.pk})

from django.urls import reverse
from django.utils.encoding import force_str

from .list import ListBreadcrumbMixin
from ..utils import action_view_name


def _model_repr(instance):
    return force_str(instance)


class DetailBreadcrumbMixin(ListBreadcrumbMixin):
    # Home / object List / object
    @property
    def crumbs(self):
        return super(DetailBreadcrumbMixin, self).crumbs + [
            (_model_repr, self._detail_view_url),
        ]

    def _detail_view_url(self, instance):
        return reverse(action_view_name(instance, self.detail_view_suffix), kwargs={'pk': instance.pk})
