Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b1b229f

Browse files
Add css support for Django admin
1 parent dc91f03 commit b1b229f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

‎MANIFEST.in‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include django_select2/static/django_select2/django_select2.js
2+
include django_select2/static/django_select2/django_select2.css
23
prune tests
34
prune .github
45
exclude .fussyfox.yml

‎django_select2/forms.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _get_media(self):
121121

122122
return forms.Media(
123123
js=select2_js + i18n_file + ("django_select2/django_select2.js",),
124-
css={"screen": select2_css},
124+
css={"screen": select2_css+ ("django_select2/django_select2.css",)},
125125
)
126126

127127
media = property(_get_media)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.change-form select.django-select2 {
2+
width: 20em;
3+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /