File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ Change log
4
4
Next version
5
5
~~~~~~~~~~~~
6
6
7
+ - Made the new ``tree_queries.admin `` module importable when
8
+ ``django-js-asset `` isn't installed so that ``compilemessages `` and other
9
+ tools automatically importing this module are allowed to work.
10
+
11
+
7
12
0.21 (2025-09-16)
8
13
~~~~~~~~~~~~~~~~~
9
14
Original file line number Diff line number Diff line change 10
10
from django .urls import path
11
11
from django .utils .html import format_html , format_html_join , mark_safe
12
12
from django .utils .translation import gettext_lazy as _
13
- from js_asset .js import JS
14
13
15
14
16
15
__all__ = (
@@ -61,6 +60,8 @@ class NodeAdmin(TreeAdmin):
61
60
62
61
@csrf_protect_m
63
62
def changelist_view (self , request , ** kwargs ):
63
+ from js_asset .js import JS # noqa: PLC0415
64
+
64
65
response = super ().changelist_view (request , ** kwargs )
65
66
if not hasattr (response , "context_data" ):
66
67
return response
You can’t perform that action at this time.
0 commit comments