django-unfold 0.45.0__py3-none-any.whl → 0.46.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-unfold
3
- Version: 0.45.0
3
+ Version: 0.46.0
4
4
  Summary: Modern Django admin theme for seamless interface development
5
5
  Home-page: https://unfoldadmin.com
6
6
  License: MIT
@@ -70,12 +70,12 @@ unfold/decorators.py,sha256=jyjE2sunazp8gK1QIsNRJGEEDwO7RDKWDKnOI3GDWZE,3338
70
70
  unfold/exceptions.py,sha256=gcCj1ox61E137bk_0Cqy4YC3SttdPgB-fiJUqpmyHSE,43
71
71
  unfold/fields.py,sha256=yhtpDfqycpOxqdQlbncCg9qhELxGk3AtXizkZyzzH0g,7410
72
72
  unfold/forms.py,sha256=BKv7eCbv29eCIuf1d_ZBmD4-_OIIzRaopiFd2nKbXNY,4520
73
- unfold/settings.py,sha256=fpfu9GVElSJSEMWpT_uZwU7vXi8k27xaG4IUdbqHb5Y,2591
74
- unfold/sites.py,sha256=UgB79cnv7rzWkSz_JcI1GuUFtLIQAs1LEhXvdKLmAzc,15058
73
+ unfold/settings.py,sha256=5VqCrNcOdD_fe1z_O-Qt3LmXseeVSQEsUWrsmcBhrzc,2622
74
+ unfold/sites.py,sha256=iXbwaDx5c_rFxXUrKIKeQxOFcCZ4-_nLBWCWIwNdC7U,15146
75
75
  unfold/static/admin/js/admin/RelatedObjectLookups.js,sha256=alI0-yq7YPDJJJn-yg1ce79-Cv88yQDUrfaGqFZnsaY,9048
76
- unfold/static/admin/js/inlines.js,sha256=sLnBw3bk4lFOkpS74MkcB8mXjCixaPQSKJsmCQtNabM,14757
76
+ unfold/static/admin/js/inlines.js,sha256=gxmQEUlJ9yasELjz9qpluogFZB-bD1KJfHs4PI7UjsA,14687
77
77
  unfold/static/unfold/css/simplebar.css,sha256=5LLaEM11pKi6JFCOLt4XKuZxTpT9rpdq_tNlaQytFlU,4647
78
- unfold/static/unfold/css/styles.css,sha256=jsI8s_ONkMrl5aD93Askp5vUUtLV3onr-SusHj36uok,156940
78
+ unfold/static/unfold/css/styles.css,sha256=uELyfb7w1gGpsd5HkhRGB3Hjt6Y-l3LC7Rb5UT7bYP8,157275
79
79
  unfold/static/unfold/fonts/inter/Inter-Bold.woff2,sha256=O88EyjAeRPE_QEyKBKpK5wf2epUOEu8wwjj5bnhCZqE,46552
80
80
  unfold/static/unfold/fonts/inter/Inter-Medium.woff2,sha256=O88EyjAeRPE_QEyKBKpK5wf2epUOEu8wwjj5bnhCZqE,46552
81
81
  unfold/static/unfold/fonts/inter/Inter-Regular.woff2,sha256=O88EyjAeRPE_QEyKBKpK5wf2epUOEu8wwjj5bnhCZqE,46552
@@ -93,7 +93,7 @@ unfold/static/unfold/js/chart.js,sha256=22W6cFERR-CElMOKRgMMicueMVP0Vf7FBEBYH8Z8
93
93
  unfold/static/unfold/js/htmx.js,sha256=acrv0NqSJpBm5yXX_hdeJrnVDJYuMFZFnAxHcVTNudM,50918
94
94
  unfold/static/unfold/js/select2.init.js,sha256=siSDCwzy2PsOwA0Kj26JA_ELBtZlS70O8D8f1qTMmqg,291
95
95
  unfold/static/unfold/js/simplebar.js,sha256=t-uG1FAD6ZoiMeN--wac0XRS7SxoDVG6zvRnGuEp7X8,27176
96
- unfold/styles.css,sha256=yH5h83DueMlpKEq8RrqyU3Mni5_ij0V43mItne2DmYo,18786
96
+ unfold/styles.css,sha256=XrdDgMYgyCw77ieNcxhHcwhkRLBvQCa-5PBf66JLZvU,18796
97
97
  unfold/templates/admin/actions.html,sha256=aroIid16mORcx-0p8O2dOoWupEoTGX66pt-PAXjSYZ0,3063
98
98
  unfold/templates/admin/app_index.html,sha256=fphodUAgaL7X4pOz-QxiWOKnESEs8wRqPoShSF6iBaU,1345
99
99
  unfold/templates/admin/app_list.html,sha256=VtntgHpbZdXbt_HXBLAtbuMdz1alS7F_S7eG37M5Rig,2855
@@ -115,12 +115,12 @@ unfold/templates/admin/filter.html,sha256=ZXldjgLjrBVrNEtAc9H9zlMd_lXJBDhBk2yf2r
115
115
  unfold/templates/admin/includes/fieldset.html,sha256=gX-dc-jPLswk21XSKUXzAU8WFl3CFfeVrIAU2bviPyg,812
116
116
  unfold/templates/admin/includes/object_delete_summary.html,sha256=FgwfapZCKWtnFtTHqh1MRuxxLot4bAw92WCcR_V8ImI,444
117
117
  unfold/templates/admin/index.html,sha256=pkGdKWdD3zzOvkRdELvdb15sleSpfl4eHPA14PAh7z0,684
118
- unfold/templates/admin/login.html,sha256=rxokhU4dpAwBFgZwSkqn6fJhY2uO03bILKEKTHM7CLM,4311
118
+ unfold/templates/admin/login.html,sha256=cer0pvCSNHrXltlgE1-2j9u4hK4XQ1yUjQbWXHaBYPQ,4445
119
119
  unfold/templates/admin/nav_sidebar.html,sha256=cadJwXcReRHwVTpXGycF3uv5VZ5JDcIbY1pCabeQlCo,250
120
120
  unfold/templates/admin/object_history.html,sha256=bfad4_lfLQFcoMV67yW7BnAi1Hwrptmgxj2tgPYQjtI,4816
121
121
  unfold/templates/admin/pagination.html,sha256=1UIc6Hm2LnDDAHUE5UjuPzdFdiAat4tF6sk058UfRP0,2251
122
122
  unfold/templates/admin/search_form.html,sha256=FUSQPwjjKrsarJxar6O2wFhucy0Eq7EOc6V-EHt86sE,1370
123
- unfold/templates/admin/submit_line.html,sha256=GqZzOJIxYlM0zauyXDIMjk8QynSpyk65Mq8d8y9tXDQ,4322
123
+ unfold/templates/admin/submit_line.html,sha256=5mxHoCVwMuocYW27P2YORmXduCNd251jTuJgHjxXvfo,4501
124
124
  unfold/templates/auth/widgets/read_only_password_hash.html,sha256=bQiYKDKJkyVP0_2eJG16oKviB4WEA0V7lSp6sGfgows,751
125
125
  unfold/templates/registration/logged_out.html,sha256=GgLzqmOGpiw5FcA-Aw_T6YvhYHhGFWhyES40T28waLQ,1002
126
126
  unfold/templates/registration/password_change_done.html,sha256=9HDpSraz3Kxdy0Fghbn-Lv0GAtpPgG6cuO7fvfMiYg8,1077
@@ -149,8 +149,8 @@ unfold/templates/unfold/helpers/attrs.html,sha256=Mwpj72kuwYj8hOT3J2T8qx6f1r_4xw
149
149
  unfold/templates/unfold/helpers/boolean.html,sha256=kcSZr3siQeBWIy_jsx1tFf4m6IB3ooRnu8UUNQrh6so,569
150
150
  unfold/templates/unfold/helpers/breadcrumb_item.html,sha256=9T6ojN7LOXIlgwSwlIwHgy5U22eQYtarCqcmzsQIoPU,201
151
151
  unfold/templates/unfold/helpers/change_list_actions.html,sha256=p1_vC2Q_Fb-gAHA8y1zzOXqqn5TPQMrQfE26PkOY_ok,656
152
- unfold/templates/unfold/helpers/change_list_filter.html,sha256=O_niVAEoJqbrM-GbG5wmUUvl3rdM0cAXQs3Mx2lZqqg,1911
153
- unfold/templates/unfold/helpers/change_list_filter_actions.html,sha256=7_IzpxL-Vz9Whi_vxybpzUJObpgHTxBuDL8DiP1bXE4,1236
152
+ unfold/templates/unfold/helpers/change_list_filter.html,sha256=GlKdsLwnAcE8LS7FXQaV0tMWgCCgKdY6HX5IBhvmf7A,1876
153
+ unfold/templates/unfold/helpers/change_list_filter_actions.html,sha256=nFiZltfPF0pT7s6eX87o7QNMC_NFG_RWaF9NlwxD9Fk,1742
154
154
  unfold/templates/unfold/helpers/delete_submit_line.html,sha256=N1w_TDIDN7Spj5diuhRUVOVgz2TiSeHVK2QvBjTLv2w,665
155
155
  unfold/templates/unfold/helpers/display_header.html,sha256=rhru2GSxR0mH8_FEQuQVIS8gGGjaiWMV9f2HCPGMsaQ,1698
156
156
  unfold/templates/unfold/helpers/display_label.html,sha256=LS9DWzYjHkYLV27sZDwyXlg2sLJ0AlId9FbjnXpsbfg,317
@@ -162,7 +162,7 @@ unfold/templates/unfold/helpers/edit_inline/tabular_row.html,sha256=Cfs2m5eh3mLc
162
162
  unfold/templates/unfold/helpers/edit_inline/tabular_title.html,sha256=JPSue6mD1-KZ3tiymbRrv1G2XgsSim4cT_6HhzYJaYY,2710
163
163
  unfold/templates/unfold/helpers/field.html,sha256=Ds-zUHkdyxamfUCVNhxvtM0XoJg9OCA0QcsLbLWv4oo,882
164
164
  unfold/templates/unfold/helpers/field_readonly.html,sha256=4qtXjWE7SA2qZSTYLOv0lT4pQfD0TE34mvWQJY7jhS8,237
165
- unfold/templates/unfold/helpers/field_readonly_value.html,sha256=Xu9v9tRMfh9ME36ZskMMF39MsRTJZDWtoV1_x4vYQtM,462
165
+ unfold/templates/unfold/helpers/field_readonly_value.html,sha256=6DNteF8x6_tihQZVCGgz2CqB0ogsLRJhxgDep0sHguc,464
166
166
  unfold/templates/unfold/helpers/fieldset_row.html,sha256=GSrMJZSNY1Tn6y3APOAeADg8Vdsa9QO_RMtj4I2SvQM,445
167
167
  unfold/templates/unfold/helpers/fieldset_row_checkbox.html,sha256=47i6PkXhiKwWb4_HjsWb6uNRZQvAYdA-LoouDshoQU4,1472
168
168
  unfold/templates/unfold/helpers/fieldset_row_field.html,sha256=pLtCZPXBCM_zBRQOzveNgE25MVqHWw9q4-9fdVKVAY0,643
@@ -170,6 +170,7 @@ unfold/templates/unfold/helpers/fieldsets_tabs.html,sha256=KW2rzVqpIICEu55GR_Knu
170
170
  unfold/templates/unfold/helpers/form_errors.html,sha256=EwerIJptSCWXvtAJ1IZKfEn98qlShBIGavsTThbklAs,266
171
171
  unfold/templates/unfold/helpers/form_label.html,sha256=BRX3DxVQfEvcmpFcRuhl4v_icMCCd5O_zmYm6MGLtts,327
172
172
  unfold/templates/unfold/helpers/header.html,sha256=ZoQH_Fs1v7fbo6fWQ5UEgfM9xPQlsYQxeabLf7nndB8,1050
173
+ unfold/templates/unfold/helpers/header_back_button.html,sha256=0c8KPfVEl_ib0G_81TueVAq5fo4vtr3GCuinhTONw4g,371
173
174
  unfold/templates/unfold/helpers/help_text.html,sha256=o-2_hyruIr_Xt0fo38aGgrpptPJFhddnVMPOVQOYhE4,113
174
175
  unfold/templates/unfold/helpers/history.html,sha256=QUYUQXcccyIl9pKPwVS_R8Is2Zo096rLZA6inlGNhkw,1921
175
176
  unfold/templates/unfold/helpers/label.html,sha256=pGzRBfuY8tos-imyA9psBxj7r93LUTfr78ff2rYPvmc,900
@@ -187,14 +188,14 @@ unfold/templates/unfold/helpers/pagination_current_item.html,sha256=4cZ2KLVcP0Y7
187
188
  unfold/templates/unfold/helpers/pagination_ellipsis.html,sha256=8g0KUUKtqRkXx_EBLGtsJsiYQO4tPS3GazZjxT90e0M,56
188
189
  unfold/templates/unfold/helpers/search.html,sha256=w8Ute3qVfSIqUXzA3TKOx91RzW_qnffFi2Oe9qedtV4,1643
189
190
  unfold/templates/unfold/helpers/search_results.html,sha256=5gxOAfFBPOkRgDziyYio6ZXcDG1bzFw7t-KXGFaWrUk,653
190
- unfold/templates/unfold/helpers/site_icon.html,sha256=eoOk1OYKuqeG0Pl0WfTifNcj9-x8FaAUarBuXNse7yU,876
191
+ unfold/templates/unfold/helpers/site_icon.html,sha256=KYN0gI8U2Eoh2CFJxxYrwA0Oj6dTx04lnCdxMNRG2Hk,874
191
192
  unfold/templates/unfold/helpers/site_logo.html,sha256=S_QJoT2qh0xw0ciaKxoT4GJ6QIH5eqgRSC0abbWWkOI,423
192
193
  unfold/templates/unfold/helpers/submit.html,sha256=4Mgf4lx7Atm8GPqD6LTJK3NA9zoSJjs9VPig7sDp8Ao,203
193
194
  unfold/templates/unfold/helpers/tab_action.html,sha256=l7TBZm5FjDjlJpTsYXFonLSFBDpN91jDiILY3hjjj5s,376
194
195
  unfold/templates/unfold/helpers/tab_list.html,sha256=FT_DMLyS0fBcV8LNJnwtGbkg0agDsLe0EmcawDfOxig,4509
195
196
  unfold/templates/unfold/helpers/theme_switch.html,sha256=jiHqwz46GFb_pXjP23VTzV0S4E2LB-fdKpsIfjDaB8w,2201
196
197
  unfold/templates/unfold/helpers/userlinks.html,sha256=oZqiwCxG_zRecAbzYrr8_hQvkndVB6-liP6LEZM1UZc,863
197
- unfold/templates/unfold/helpers/welcomemsg.html,sha256=41ByWp5oZrEIzWtz3qqa3FEatjcdcKEOMQEjKp5ZuAs,1822
198
+ unfold/templates/unfold/helpers/welcomemsg.html,sha256=a7VjZ8J1mn-DAo57nhUP096SEcBOqcCWrWt2qoT0cyg,1882
198
199
  unfold/templates/unfold/layouts/base.html,sha256=bAXZDbyiyxNiE-49mqr7pHUFhC2mHZQzIDUY-js_yZ0,379
199
200
  unfold/templates/unfold/layouts/base_simple.html,sha256=VigjNWnWOt_XtbahvqsroPf8mdwl7cDGbg5fEaLmG9s,1211
200
201
  unfold/templates/unfold/layouts/skeleton.html,sha256=Z0N9FkqQRmBANMHg68-I_wupbywR3OThGzNMQGLwS3w,4540
@@ -215,13 +216,13 @@ unfold/templates/unfold/widgets/textarea_expandable.html,sha256=Pqi2udY0FWxVA-B1
215
216
  unfold/templates/unfold/widgets/time.html,sha256=WXo2LG1v_gBZBSg-zocj7oujMKI0MWLYCIFfB04HMLQ,122
216
217
  unfold/templates/unfold/widgets/url.html,sha256=IRLgW44VTKN7UrSWeywJwaxQhfG5jhhXuT-KTadKX58,304
217
218
  unfold/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
218
- unfold/templatetags/unfold.py,sha256=GHotGRUXrDGD4lu-0vXdRGvhEvdNq-Xdut9dp3FMB2c,10971
219
+ unfold/templatetags/unfold.py,sha256=l2OrOfU-m6sXvaGmSgQI3gvJoJ8PevGhK99YkrL8RxE,11181
219
220
  unfold/templatetags/unfold_list.py,sha256=QSDm69hqo3GpOMRe4O2uw7KpGirQCzXnpq23ZrZNyPw,14239
220
221
  unfold/typing.py,sha256=1P8PWM2oeaceUJtA5j071RbKEBpHYaux441u7Hd6wv4,643
221
222
  unfold/utils.py,sha256=36WgmgGRayf_fkNtjoFoI1_G9w8f8gZflNzzqQ3256U,5459
222
223
  unfold/views.py,sha256=hQCyeeMa9kcJV1IZeeYqj8PGW7J4QWME8n-5n0UGmiU,1003
223
- unfold/widgets.py,sha256=DUgbxrrOa1rR8sAb-KyLCHPdGCXG6ZAGI9oPg1aT88U,17316
224
- django_unfold-0.45.0.dist-info/LICENSE.md,sha256=Ltk_quRyyvV3J5v3brtOqmibeZSw2Hrb8bY1W3ya0Ik,1077
225
- django_unfold-0.45.0.dist-info/METADATA,sha256=QMXp1DOM5OJtiIRWvAPPP0Sci9_-ufqSm_znk_GcU_Q,4864
226
- django_unfold-0.45.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
227
- django_unfold-0.45.0.dist-info/RECORD,,
224
+ unfold/widgets.py,sha256=u3E_T4fBzP1_UL2gWuofX98mthINBRdQj3XWYuMjfmo,20185
225
+ django_unfold-0.46.0.dist-info/LICENSE.md,sha256=Ltk_quRyyvV3J5v3brtOqmibeZSw2Hrb8bY1W3ya0Ik,1077
226
+ django_unfold-0.46.0.dist-info/METADATA,sha256=7xSRpNo1C4BffSq61zmJJPm6GWlYxybumK3T1teTRFY,4864
227
+ django_unfold-0.46.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
228
+ django_unfold-0.46.0.dist-info/RECORD,,
unfold/settings.py CHANGED
@@ -13,6 +13,7 @@ CONFIG_DEFAULTS = {
13
13
  "SHOW_HISTORY": True,
14
14
  "SHOW_VIEW_ON_SITE": True,
15
15
  "SHOW_LANGUAGES": False,
16
+ "SHOW_BACK_BUTTON": False,
16
17
  "COLORS": {
17
18
  "base": {
18
19
  "50": "249 250 251",
unfold/sites.py CHANGED
@@ -95,6 +95,7 @@ class UnfoldAdminSite(AdminSite):
95
95
  "SHOW_VIEW_ON_SITE"
96
96
  ],
97
97
  "show_languages": get_config(self.settings_name)["SHOW_LANGUAGES"],
98
+ "show_back_button": get_config(self.settings_name)["SHOW_BACK_BUTTON"],
98
99
  "colors": self._process_colors(
99
100
  get_config(self.settings_name)["COLORS"]
100
101
  ),
@@ -254,9 +254,9 @@
254
254
  const showAddButton =
255
255
  maxForms.val() === "" || maxForms.val() - totalForms.val() > 0;
256
256
  if ($this.length && showAddButton) {
257
- addButton.parent().parent().show(); // !CHANGED from original
257
+ addButton.parent().show();
258
258
  } else {
259
- addButton.parent().parent().hide(); // !CHANGED from original
259
+ addButton.parent().hide();
260
260
  }
261
261
 
262
262
  return this;