From f7d298e2392057196ba94467ce604f7d20ab0f10 Mon Sep 17 00:00:00 2001 From: Josh Yu Date: Tue, 20 Aug 2024 14:30:27 +0800 Subject: [PATCH] Fix: universal branch (#167) * fix: manifest.in * fix: SnippetAdmin use overrdden change_form_template * ci: auto fixes from pre-commit hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- MANIFEST.in | 2 +- src/djangocms_snippet/admin.py | 1 + 2 files changed, 2 insertions(+), 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 * diff --git a/src/djangocms_snippet/admin.py b/src/djangocms_snippet/admin.py index b3edd140..ce540a2b 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,