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
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: django-unfold
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.30.0
|
4
4
|
Summary: Modern Django admin theme for seamless interface development
|
5
5
|
Home-page: https://unfoldadmin.com
|
6
6
|
License: MIT
|
@@ -345,6 +345,9 @@ class CustomAdminClass(ModelAdmin):
|
|
345
345
|
# Display submit button in filters
|
346
346
|
list_filter_submit = False
|
347
347
|
|
348
|
+
# Position horizontal scrollbar in changelist at the top
|
349
|
+
list_horizontal_scrollbar_top = False
|
350
|
+
|
348
351
|
# Custom actions
|
349
352
|
actions_list = [] # Displayed above the results list
|
350
353
|
actions_row = [] # Displayed in a table row in results list
|
@@ -511,10 +514,10 @@ class SomeForm(forms.Form):
|
|
511
514
|
@register(User)
|
512
515
|
class UserAdmin(ModelAdmin):
|
513
516
|
actions_detail = ["change_detail_action_block"]
|
514
|
-
form = SomeForm(request.POST or None)
|
515
517
|
|
516
518
|
@action(description=_("Detail"))
|
517
519
|
def change_detail_action_block(self, request: HttpRequest, object_id: int) -> str:
|
520
|
+
form = SomeForm(request.POST or None)
|
518
521
|
user = User.objects.get(pk=object_id)
|
519
522
|
|
520
523
|
if request.method == "POST" and form.is_valid():
|
@@ -1,5 +1,5 @@
|
|
1
1
|
unfold/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
unfold/admin.py,sha256=
|
2
|
+
unfold/admin.py,sha256=mKkWn3sjggvPoJor2K8xLjLq43tb5qAGBfeki5Lq4JY,19063
|
3
3
|
unfold/apps.py,sha256=SlBXPYrUd2uXn67qFbRvbXSUk3XFWrF4-5WELgDCvho,381
|
4
4
|
unfold/checks.py,sha256=Smgji9w19hnYjJElJ_FJnnyTEAE-E-OUB6otHu7lasY,1670
|
5
5
|
unfold/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -22,7 +22,7 @@ unfold/contrib/forms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
22
22
|
unfold/contrib/forms/apps.py,sha256=Di0TMzVuRpVxLG-8Bjdq5ALCSf5r7u2xVhD0jU6H5Sc,132
|
23
23
|
unfold/contrib/forms/static/unfold/forms/css/trix.css,sha256=TH9WdnaZrmwI8hAEydwjobdrBzSw_KYdRTSQDuD-8hE,20027
|
24
24
|
unfold/contrib/forms/static/unfold/forms/js/trix.config.js,sha256=spkNBlJVk_pqido_rM6yywQxkJ3Kqb7DMLiBgpKksdA,858
|
25
|
-
unfold/contrib/forms/static/unfold/forms/js/trix.js,sha256=
|
25
|
+
unfold/contrib/forms/static/unfold/forms/js/trix.js,sha256=HJXkWw7Mtocr7IeyBVplEIeO4X0kUhHHsI1Yra_ZMl8,175599
|
26
26
|
unfold/contrib/forms/templates/unfold/forms/array.html,sha256=11silyHbsJA0U_ksS8MvfFOJKC_qKTAwXxoMIB78APk,1507
|
27
27
|
unfold/contrib/forms/templates/unfold/forms/helpers/toolbar.html,sha256=yS8Zy-UrzvZ5RUYwdprQzREffnYq0NlIbXBfZM2UB04,9700
|
28
28
|
unfold/contrib/forms/templates/unfold/forms/wysiwyg.html,sha256=4ZefV6XrjJlUczcuSw8BhvMJUFSZPSXo1IkgkBivh5g,351
|
@@ -67,12 +67,12 @@ unfold/contrib/simple_history/templates/simple_history/submit_line.html,sha256=n
|
|
67
67
|
unfold/dataclasses.py,sha256=XssBT3nfeFO-oekKDWrX6abIyrIW1P8CPzzCv1TRYFM,266
|
68
68
|
unfold/decorators.py,sha256=6E4vPVwK0IQDAiDPg9pgyypRqciX_gR0jwITDcrSc8U,3367
|
69
69
|
unfold/exceptions.py,sha256=gcCj1ox61E137bk_0Cqy4YC3SttdPgB-fiJUqpmyHSE,43
|
70
|
-
unfold/fields.py,sha256=
|
71
|
-
unfold/forms.py,sha256=
|
70
|
+
unfold/fields.py,sha256=FLUxqlqNNCQgzRD12n_l54arqNZG1p_vJ6dYQIdf4cE,7466
|
71
|
+
unfold/forms.py,sha256=_HDCPoFUGMGvURIDMh1ut6VrhjkonIPxarYRGn0gi_A,4071
|
72
72
|
unfold/settings.py,sha256=--TdTSWdOA8TQGW4-vjJkjy_zEyd_kZwBr3BIuQ8hzI,1208
|
73
73
|
unfold/sites.py,sha256=Gy_i43j2nizW2g8-mas5icvtk-beKism_CznATW6Ia8,12586
|
74
74
|
unfold/static/unfold/css/simplebar.css,sha256=5LLaEM11pKi6JFCOLt4XKuZxTpT9rpdq_tNlaQytFlU,4647
|
75
|
-
unfold/static/unfold/css/styles.css,sha256=
|
75
|
+
unfold/static/unfold/css/styles.css,sha256=lTKMfdZtOfoNQfL0Z55WECAwN9Po-7lUNsGs2ppFRQg,94176
|
76
76
|
unfold/static/unfold/fonts/inter/Inter-Bold.woff2,sha256=O88EyjAeRPE_QEyKBKpK5wf2epUOEu8wwjj5bnhCZqE,46552
|
77
77
|
unfold/static/unfold/fonts/inter/Inter-Medium.woff2,sha256=O88EyjAeRPE_QEyKBKpK5wf2epUOEu8wwjj5bnhCZqE,46552
|
78
78
|
unfold/static/unfold/fonts/inter/Inter-Regular.woff2,sha256=O88EyjAeRPE_QEyKBKpK5wf2epUOEu8wwjj5bnhCZqE,46552
|
@@ -82,11 +82,11 @@ unfold/static/unfold/fonts/material-symbols/Material-Symbols-Outlined.woff2,sha2
|
|
82
82
|
unfold/static/unfold/fonts/material-symbols/styles.css,sha256=U0oiGd2DS7LXnbuqgsvPNTDJgLZlA9s6LFOJ6FDihks,557
|
83
83
|
unfold/static/unfold/js/alpine.js,sha256=XQltNouEUe1VZDk-nixNjSZDFH9lyKSBiK7BjpTB-0s,41071
|
84
84
|
unfold/static/unfold/js/alpine.persist.js,sha256=84PZYnPi25AFm7wIWRe1gzA74c5Rv2VYASYEfaqKLHI,626
|
85
|
-
unfold/static/unfold/js/app.js,sha256=
|
85
|
+
unfold/static/unfold/js/app.js,sha256=d0V6JQ8VOpr47ArsV0fq0GGWml1GzdRW-94DraBPtJQ,5768
|
86
86
|
unfold/static/unfold/js/chart.js,sha256=22W6cFERR-CElMOKRgMMicueMVP0Vf7FBEBYH8Z8tCk,200633
|
87
87
|
unfold/static/unfold/js/htmx.js,sha256=XOLqvnZiyEx46EW9vaJTBUaaWg8CGVVfXJkVsUmJbpI,42820
|
88
88
|
unfold/static/unfold/js/simplebar.js,sha256=t-uG1FAD6ZoiMeN--wac0XRS7SxoDVG6zvRnGuEp7X8,27176
|
89
|
-
unfold/styles.css,sha256
|
89
|
+
unfold/styles.css,sha256=Mj6VEsDlhfOkTnNeGgNja3JX0FSDCg-UQEN-hRbDH9s,18350
|
90
90
|
unfold/templates/admin/actions.html,sha256=fffRBkdfaPASnDC59M6R1Z7h3MFEXn3Y-QU9ZdCI7RE,2647
|
91
91
|
unfold/templates/admin/app_index.html,sha256=lVjMIFsspHQ09LGHKfdfg7TlqlL39AX5LbwoeoZjFhk,1335
|
92
92
|
unfold/templates/admin/app_list.html,sha256=AdWB3duShcYHISTS8l-ule088FSQ8Jw9anPbS1-vuYc,3060
|
@@ -98,12 +98,12 @@ unfold/templates/admin/change_form.html,sha256=oWK5wr0qv6QMJrFQ9Veacozg_CN1DwmBq
|
|
98
98
|
unfold/templates/admin/change_form_object_tools.html,sha256=eyeH-i2HgEM0Yi-OJA2D1VnKJyC19A_my1IDGxxoP8Y,593
|
99
99
|
unfold/templates/admin/change_list.html,sha256=18GDZswc1c0xtw2BcKti9SX95Ar9e1BX_HSY0K79g_8,5102
|
100
100
|
unfold/templates/admin/change_list_object_tools.html,sha256=cmMiT2nT20Ph5yfpj9aHPr76Z-JP4aSXp0o-Rnad28s,147
|
101
|
-
unfold/templates/admin/change_list_results.html,sha256=
|
101
|
+
unfold/templates/admin/change_list_results.html,sha256=sV4HR-vKCxZRZOkm3GnabYpPk4iRpMnmVuVmvxBxH4k,5494
|
102
102
|
unfold/templates/admin/date_hierarchy.html,sha256=BfUPbsLpHZVa40BHBahz1H9RSVuz36Jc3yrlobOiIpw,1306
|
103
103
|
unfold/templates/admin/delete_confirmation.html,sha256=hpa2E14oZEXBBs6W1qdNQuF650TIO2Rhr52Q6UfwVeQ,5166
|
104
104
|
unfold/templates/admin/delete_selected_confirmation.html,sha256=Foka2yvwAMEZre-Kh1KNadRzrCotdKM2U4e6AJQYZu8,4941
|
105
105
|
unfold/templates/admin/edit_inline/stacked.html,sha256=kKWuO0un9hebuUZjLLr1mygC7K8MuHfPsnTxL87OqJI,5489
|
106
|
-
unfold/templates/admin/edit_inline/tabular.html,sha256=
|
106
|
+
unfold/templates/admin/edit_inline/tabular.html,sha256=MSamuoICJK2hG5m5MBOxZZA9NRhCENSJgTuBLfRlgNs,13350
|
107
107
|
unfold/templates/admin/filter.html,sha256=0zTLzx31LjC1k3v8Q2lCopegFVZul8psqEJoWaHb-Vg,1752
|
108
108
|
unfold/templates/admin/includes/fieldset.html,sha256=lMVwBifFWKvLvHqZ6yjP6Xf6BJFzi-EOf5JHIxEHmRI,888
|
109
109
|
unfold/templates/admin/includes/object_delete_summary.html,sha256=Nv69SCzyJHFX14iJFfodxKM0IIpQegKZH0fvKB15QJI,468
|
@@ -118,7 +118,7 @@ unfold/templates/auth/widgets/read_only_password_hash.html,sha256=Li9efo-3cFC5zj
|
|
118
118
|
unfold/templates/registration/logged_out.html,sha256=E7RHtB6AGQwgUIiV7dwJ1DbdfNvEhzJARONnB6jRLhQ,1028
|
119
119
|
unfold/templates/registration/password_change_done.html,sha256=i1ZzfTwZHWNWoN9_xHZDdcgLdTOVbTFFD1HUSuG0LkY,1062
|
120
120
|
unfold/templates/registration/password_change_form.html,sha256=zzmqFHfMExS7czgEBdEtetXk2Ae_7jzaID7CpE_xlgo,2225
|
121
|
-
unfold/templates/unfold/change_list_filter.html,sha256=
|
121
|
+
unfold/templates/unfold/change_list_filter.html,sha256=NKZJMvHVjmney1vms08LsDTPPh6Z9fo6LqgauJWhVfA,2189
|
122
122
|
unfold/templates/unfold/components/button.html,sha256=M_kn5fJPadvBfTUdN56-LMkouvfpUMga7orRJoVifgc,178
|
123
123
|
unfold/templates/unfold/components/card.html,sha256=F0iaFv4F8NOjhka24XJHckJxub_Yhq2tJ4cLu6aTHwI,799
|
124
124
|
unfold/templates/unfold/components/chart/bar.html,sha256=nDdDCUXvFd793OpNgNPQo0vBmvYngMsQyPHVTf1vfOw,297
|
@@ -142,8 +142,8 @@ unfold/templates/unfold/helpers/display_header.html,sha256=HiuaIJ6Y8DSM99OFypLO_
|
|
142
142
|
unfold/templates/unfold/helpers/display_label.html,sha256=LS9DWzYjHkYLV27sZDwyXlg2sLJ0AlId9FbjnXpsbfg,317
|
143
143
|
unfold/templates/unfold/helpers/field.html,sha256=Ds-zUHkdyxamfUCVNhxvtM0XoJg9OCA0QcsLbLWv4oo,882
|
144
144
|
unfold/templates/unfold/helpers/field_readonly.html,sha256=O0gHEW46OWt1oUUk0lZiyR-mztWv_7IH6GpKRm2wUw4,235
|
145
|
-
unfold/templates/unfold/helpers/field_readonly_value.html,sha256=
|
146
|
-
unfold/templates/unfold/helpers/fieldset_row.html,sha256=
|
145
|
+
unfold/templates/unfold/helpers/field_readonly_value.html,sha256=tNhw67n_Ak8wWbeV3yb64HmKUoKaB7YI2Ks6MAdPhyc,442
|
146
|
+
unfold/templates/unfold/helpers/fieldset_row.html,sha256=j1DN-Ankl72kEQnZejo5mGz-TFATlI62HxNZt81Xf5M,4131
|
147
147
|
unfold/templates/unfold/helpers/fieldsets_tabs.html,sha256=V3bgW75eozaBDty-xfciGafhCWq_Ba5HfQkk92yRc9A,1445
|
148
148
|
unfold/templates/unfold/helpers/form_errors.html,sha256=EwerIJptSCWXvtAJ1IZKfEn98qlShBIGavsTThbklAs,266
|
149
149
|
unfold/templates/unfold/helpers/form_label.html,sha256=SR4U6iK9w4oels6iGY_Da-yN4BbXQVN9zCDlBGGXcw8,310
|
@@ -191,8 +191,8 @@ unfold/templatetags/unfold_list.py,sha256=5xAjQX0_JnVwDaj-wGkGqbjOAtp-a18koWIKj5
|
|
191
191
|
unfold/typing.py,sha256=1P8PWM2oeaceUJtA5j071RbKEBpHYaux441u7Hd6wv4,643
|
192
192
|
unfold/utils.py,sha256=zZdJE4FmwRd7p5a7sJiAoZjBOJitXJduOq7BulyppWM,4803
|
193
193
|
unfold/views.py,sha256=hQCyeeMa9kcJV1IZeeYqj8PGW7J4QWME8n-5n0UGmiU,1003
|
194
|
-
unfold/widgets.py,sha256=
|
195
|
-
django_unfold-0.
|
196
|
-
django_unfold-0.
|
197
|
-
django_unfold-0.
|
198
|
-
django_unfold-0.
|
194
|
+
unfold/widgets.py,sha256=41zf0dFwVqyvxDqPbVckMglM4yt9foQVRJ9lmBkVXKk,15893
|
195
|
+
django_unfold-0.30.0.dist-info/LICENSE.md,sha256=Ltk_quRyyvV3J5v3brtOqmibeZSw2Hrb8bY1W3ya0Ik,1077
|
196
|
+
django_unfold-0.30.0.dist-info/METADATA,sha256=R_EzmyPIAsGK08aHdJbjJVn47ZDXzk2nkV1Do970urk,53344
|
197
|
+
django_unfold-0.30.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
198
|
+
django_unfold-0.30.0.dist-info/RECORD,,
|
unfold/admin.py
CHANGED
@@ -227,7 +227,9 @@ class ModelAdmin(ModelAdminMixin, BaseModelAdmin):
|
|
227
227
|
actions_submit_line = ()
|
228
228
|
custom_urls = ()
|
229
229
|
add_fieldsets = ()
|
230
|
+
list_horizontal_scrollbar_top = False
|
230
231
|
list_filter_submit = False
|
232
|
+
compressed_fields = False
|
231
233
|
readonly_preprocess_fields = {}
|
232
234
|
checks_class = UnfoldModelAdminChecks
|
233
235
|
|