django-unfold 0.29.1__py3-none-any.whl → 0.30.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {django_unfold-0.29.1.dist-info → django_unfold-0.30.0.dist-info}/METADATA +5 -2
- {django_unfold-0.29.1.dist-info → django_unfold-0.30.0.dist-info}/RECORD +17 -17
- unfold/admin.py +2 -0
- unfold/contrib/forms/static/unfold/forms/js/trix.js +2 -2
- unfold/fields.py +2 -2
- unfold/forms.py +18 -3
- unfold/static/unfold/css/styles.css +1 -1
- unfold/static/unfold/js/app.js +19 -0
- unfold/styles.css +5 -1
- unfold/templates/admin/change_list_results.html +1 -1
- unfold/templates/admin/edit_inline/tabular.html +1 -1
- unfold/templates/unfold/change_list_filter.html +1 -1
- unfold/templates/unfold/helpers/field_readonly_value.html +1 -1
- unfold/templates/unfold/helpers/fieldset_row.html +1 -1
- unfold/widgets.py +9 -2
- {django_unfold-0.29.1.dist-info → django_unfold-0.30.0.dist-info}/LICENSE.md +0 -0
- {django_unfold-0.29.1.dist-info → django_unfold-0.30.0.dist-info}/WHEEL +0 -0
unfold/widgets.py
CHANGED
@@ -23,6 +23,7 @@ from django.forms import (
|
|
23
23
|
MultiWidget,
|
24
24
|
NullBooleanSelect,
|
25
25
|
NumberInput,
|
26
|
+
PasswordInput,
|
26
27
|
Select,
|
27
28
|
)
|
28
29
|
from django.utils.translation import gettext_lazy as _
|
@@ -90,12 +91,10 @@ TEXTAREA_CLASSES = [
|
|
90
91
|
"max-w-4xl",
|
91
92
|
"appearance-none",
|
92
93
|
"expandable",
|
93
|
-
"overflow-hidden",
|
94
94
|
"transition",
|
95
95
|
"transition-height",
|
96
96
|
"duration-75",
|
97
97
|
"ease-in-out",
|
98
|
-
"resize-none",
|
99
98
|
]
|
100
99
|
|
101
100
|
TEXTAREA_EXPANDABLE_CLASSES = [
|
@@ -116,6 +115,7 @@ SELECT_CLASSES = [
|
|
116
115
|
|
117
116
|
PROSE_CLASSES = [
|
118
117
|
"font-normal",
|
118
|
+
"whitespace-normal",
|
119
119
|
"prose-sm",
|
120
120
|
"prose-blockquote:border-l-4",
|
121
121
|
"prose-blockquote:not-italic",
|
@@ -567,3 +567,10 @@ class UnfoldForeignKeyRawIdWidget(ForeignKeyRawIdWidget):
|
|
567
567
|
**(attrs or {}),
|
568
568
|
}
|
569
569
|
super().__init__(rel, admin_site, attrs, using)
|
570
|
+
|
571
|
+
|
572
|
+
class UnfoldAdminPasswordInput(PasswordInput):
|
573
|
+
def __init__(self, attrs=None, render_value=False):
|
574
|
+
super().__init__(
|
575
|
+
{"class": " ".join(INPUT_CLASSES), **(attrs or {})}, render_value
|
576
|
+
)
|
File without changes
|
File without changes
|