Skip to content

Commit

Permalink
refactor(version): 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
slapshin committed Nov 29, 2022
1 parent 4210d63 commit e8a1511
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "jnt-django-toolbox"
version = "0.8.1"
version = "0.8.2"
description = ""
authors = ["junte <[email protected]>"]
classifiers=[
Expand Down
8 changes: 6 additions & 2 deletions src/jnt_django_toolbox/admin/views/base_model_admin_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from django.contrib import admin
from django.contrib.auth import get_permission_codename
from django.db import models, transaction
from django.urls import reverse

from jnt_django_toolbox.admin.helpers.urls import admin_url_provider
from jnt_django_toolbox.admin.views.base_admin_page import (
Expand Down Expand Up @@ -38,12 +39,15 @@ def post(self, *args, **kwargs):

def get_breadcrumbs(self) -> list[AdminPageBreadcrumb]:
model = self.get_model()

breadcrumbs = [
AdminPageBreadcrumb(
title=model._meta.app_label,
href="/{0}/{1}/".format(
href="{0}{1}/".format(
reverse(
"{0}:index".format(self.model_admin.admin_site.name),
),
model._meta.app_label,
self.model_admin.admin_site.name,
),
),
AdminPageBreadcrumb(
Expand Down

0 comments on commit e8a1511

Please sign in to comment.