Skip to content

Commit 26e6eae

Browse files
committed
enable css file customisation
1 parent fa99921 commit 26e6eae

File tree

6 files changed

+256
-250
lines changed

6 files changed

+256
-250
lines changed

CHANGES.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Release 2.5.2
2+
=============
3+
* restored wrongly removed css
4+
* enable css file customisation
5+
6+
17
Release 2.5.1
28
=============
39
* limit select2.css customisation be applied only to filters

src/adminfilters/autocomplete.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AutoCompleteFilter(SmartFieldListFilter, MediaDefinitionFilter):
2323
parent = None
2424
parent_lookup_kwarg = None
2525
ajax_url = None
26-
css = "adminfilters/adminfilters.css",
26+
css = "adminfilters/adminfilters%s.css"
2727

2828
def __init__(self, field, request, params, model, model_admin, field_path):
2929
self.dependants = []
@@ -82,7 +82,7 @@ def media(self):
8282
css={
8383
"screen": (
8484
"admin/css/vendor/select2/select2%s.css" % extra,
85-
"adminfilters/adminfilters%s.css" % extra,
85+
self.css % extra,
8686
),
8787
},
8888
)

src/adminfilters/static/adminfilters/adminfilters.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)