From 008ae769c09dd35a8a2753b31b0a41cf1953cfcd Mon Sep 17 00:00:00 2001 From: Josh Yu Date: Tue, 20 Aug 2024 01:18:53 +0000 Subject: [PATCH 1/3] fix: manifest.in --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 94c37640..a7c6b987 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,4 +3,4 @@ include CHANGELOG.rst include LICENSE include pyproject.toml include README.rst -include src/*/py.typed +recursive-include src/djangocms_snippet * From 374cfe80dbf8ac80cb7066049c8c30b11e5258ea Mon Sep 17 00:00:00 2001 From: Josh Yu Date: Tue, 20 Aug 2024 02:01:50 +0000 Subject: [PATCH 2/3] fix: SnippetAdmin use overrdden change_form_template --- src/djangocms_snippet/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/djangocms_snippet/admin.py b/src/djangocms_snippet/admin.py index b3edd140..44d10562 100644 --- a/src/djangocms_snippet/admin.py +++ b/src/djangocms_snippet/admin.py @@ -47,6 +47,7 @@ class Media: list_display = ("name",) search_fields: ClassVar[list[str]] = ["name"] + change_form_template = 'djangocms_snippet/admin/change_form.html' text_area_attrs: ClassVar[dict[str, Any]] = { "rows": 20, "data-editor": True, From 79a993ff6d6db32db02879ede6f07e0f7e585af5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 02:03:58 +0000 Subject: [PATCH 3/3] ci: auto fixes from pre-commit hooks for more information, see https://pre-commit.ci --- src/djangocms_snippet/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/djangocms_snippet/admin.py b/src/djangocms_snippet/admin.py index 44d10562..ce540a2b 100644 --- a/src/djangocms_snippet/admin.py +++ b/src/djangocms_snippet/admin.py @@ -47,7 +47,7 @@ class Media: list_display = ("name",) search_fields: ClassVar[list[str]] = ["name"] - change_form_template = 'djangocms_snippet/admin/change_form.html' + change_form_template = "djangocms_snippet/admin/change_form.html" text_area_attrs: ClassVar[dict[str, Any]] = { "rows": 20, "data-editor": True,