django-unfold 0.67.0__py3-none-any.whl → 0.69.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.
Files changed (54) hide show
  1. {django_unfold-0.67.0.dist-info → django_unfold-0.69.0.dist-info}/METADATA +33 -41
  2. {django_unfold-0.67.0.dist-info → django_unfold-0.69.0.dist-info}/RECORD +54 -47
  3. unfold/admin.py +46 -15
  4. unfold/components.py +2 -2
  5. unfold/contrib/filters/admin/choice_filters.py +13 -1
  6. unfold/contrib/filters/admin/mixins.py +3 -3
  7. unfold/contrib/filters/admin/numeric_filters.py +6 -6
  8. unfold/contrib/forms/widgets.py +5 -5
  9. unfold/contrib/inlines/admin.py +3 -3
  10. unfold/contrib/inlines/forms.py +5 -4
  11. unfold/dataclasses.py +13 -13
  12. unfold/datasets.py +90 -0
  13. unfold/decorators.py +19 -19
  14. unfold/fields.py +3 -5
  15. unfold/forms.py +41 -22
  16. unfold/mixins/__init__.py +2 -1
  17. unfold/mixins/action_model_admin.py +11 -10
  18. unfold/mixins/base_model_admin.py +6 -6
  19. unfold/mixins/dataset_model_admin.py +62 -0
  20. unfold/settings.py +1 -0
  21. unfold/sites.py +19 -18
  22. unfold/static/admin/js/actions.js +246 -0
  23. unfold/static/unfold/css/styles.css +2 -2
  24. unfold/static/unfold/fonts/material-symbols/Material-Symbols-Outlined.woff2 +0 -0
  25. unfold/static/unfold/js/app.js +3 -1
  26. unfold/styles.css +21 -16
  27. unfold/templates/admin/actions.html +2 -2
  28. unfold/templates/admin/change_form.html +10 -2
  29. unfold/templates/admin/change_list.html +1 -1
  30. unfold/templates/admin/change_list_results.html +10 -62
  31. unfold/templates/admin/dataset_actions.html +50 -0
  32. unfold/templates/admin/edit_inline/stacked.html +2 -8
  33. unfold/templates/admin/edit_inline/tabular.html +1 -7
  34. unfold/templates/admin/includes/fieldset.html +1 -3
  35. unfold/templates/admin/search_form.html +6 -4
  36. unfold/templates/registration/password_change_done.html +3 -4
  37. unfold/templates/registration/password_change_form.html +10 -6
  38. unfold/templates/unfold/helpers/change_list_actions.html +1 -1
  39. unfold/templates/unfold/helpers/change_list_headers.html +65 -0
  40. unfold/templates/unfold/helpers/dataset.html +31 -0
  41. unfold/templates/unfold/helpers/edit_inline/tabular_field.html +1 -1
  42. unfold/templates/unfold/helpers/empty_results.html +6 -4
  43. unfold/templates/unfold/helpers/field_readonly_value_file.html +1 -1
  44. unfold/templates/unfold/helpers/fieldsets_tabs.html +9 -11
  45. unfold/templates/unfold/helpers/inline_heading.html +11 -0
  46. unfold/templates/unfold/helpers/tab_items.html +9 -1
  47. unfold/templatetags/unfold.py +64 -82
  48. unfold/templatetags/unfold_list.py +76 -8
  49. unfold/typing.py +5 -6
  50. unfold/utils.py +9 -9
  51. unfold/views.py +15 -1
  52. unfold/widgets.py +31 -31
  53. {django_unfold-0.67.0.dist-info → django_unfold-0.69.0.dist-info}/WHEEL +0 -0
  54. {django_unfold-0.67.0.dist-info → django_unfold-0.69.0.dist-info}/licenses/LICENSE.md +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-unfold
3
- Version: 0.67.0
3
+ Version: 0.69.0
4
4
  Summary: Modern Django admin theme for seamless interface development
5
5
  License: MIT
6
6
  License-File: LICENSE.md
7
7
  Keywords: django,admin,tailwind,theme
8
- Requires-Python: >=3.9
8
+ Requires-Python: >=3.10,<4.0
9
9
  Classifier: Environment :: Web Environment
10
10
  Classifier: Framework :: Django
11
11
  Classifier: Intended Audience :: Developers
@@ -13,7 +13,6 @@ Classifier: License :: OSI Approved :: MIT License
13
13
  Classifier: Operating System :: OS Independent
14
14
  Classifier: Programming Language :: Python
15
15
  Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3.9
17
16
  Classifier: Programming Language :: Python :: 3.10
18
17
  Classifier: Programming Language :: Python :: 3.11
19
18
  Classifier: Programming Language :: Python :: 3.12
@@ -24,7 +23,7 @@ Project-URL: Homepage, https://unfoldadmin.com
24
23
  Project-URL: Repository, https://github.com/unfoldadmin/django-unfold
25
24
  Description-Content-Type: text/markdown
26
25
 
27
- ![screenshot](https://github.com/user-attachments/assets/87aaad04-f454-42aa-b9ac-e14d41f189ac)
26
+ [![screenshot](https://github.com/user-attachments/assets/8c2dc5c1-480b-49ad-bd2e-57369ca4e306)](https://unfoldadmin.com)
28
27
 
29
28
  ## Unfold - Django Admin Theme
30
29
 
@@ -34,7 +33,7 @@ Description-Content-Type: text/markdown
34
33
  ![Pre Commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=for-the-badge)
35
34
  ![Code Style - Ruff](https://img.shields.io/badge/code%20style-ruff-30173D.svg?style=for-the-badge)
36
35
 
37
- Transform your Django admin into a powerful, modern administrative interface with Unfold. This open-source theme enhances Django's default admin with beautiful design, advanced features, and developer-friendly customization options. Built on proven best practices, Unfold seamlessly integrates with your existing Django admin while providing all the tools needed to create sophisticated administrative areas that both developers and end-users will love.
36
+ Modern theme that upgrades Django admin with beautiful design, advanced features, and easy customization.
38
37
 
39
38
  - **Documentation:** The full documentation is available at [unfoldadmin.com](https://unfoldadmin.com?utm_medium=github&utm_source=unfold).
40
39
  - **Unfold:** The demo site is available at [unfoldadmin.com](https://unfoldadmin.com?utm_medium=github&utm_source=unfold).
@@ -42,56 +41,49 @@ Transform your Django admin into a powerful, modern administrative interface wit
42
41
  - **Turbo:** A Django & Next.js boilerplate implementing Unfold is available at [github.com/unfoldadmin/turbo](https://github.com/unfoldadmin/turbo?utm_medium=github&utm_source=unfold).
43
42
  - **Discord:** Join our Unfold community on [Discord](https://discord.gg/9sQj9MEbNz).
44
43
 
45
- ## Profesional tools & services
44
+ ## Profesional services
46
45
 
47
- Looking for professional help with your Django or Unfold project? We offer a range of tools and services to support your development process:
46
+ Need expert help with Django or Unfold? We offer services to support your project:
48
47
 
49
- ### Consulting services
48
+ - **Consulting**: Expert guidance on Django architecture, performance, feature development, and Unfold integration. [Learn more](https://unfoldadmin.com/consulting/?utm_medium=github&utm_source=unfold)
49
+ - **Support**: Assistance with integrating or customizing Unfold, including live 1:1 calls and implementation review. Fixed price, no ongoing commitment. [Learn more](https://unfoldadmin.com/support/?utm_medium=github&utm_source=unfold)
50
+ - **Studio**: Visually customize Django admin with own color schemes. Access a variety of dashboard templates, a password reset flow, and more. [Learn more](https://unfoldadmin.com/studio?utm_medium=github&utm_source=unfold)
50
51
 
51
- Professional consulting services for Django applications — from architecture and performance optimization to feature development and Unfold integration.
52
- Ideal for teams looking to scale, modernize, or customize their Django projects with expert support. Learn more at [unfoldadmin.com/consulting](https://unfoldadmin.com/consulting/?utm_medium=github&utm_source=unfold).
52
+ [![dashboards](https://github.com/user-attachments/assets/7c3124ab-2f59-4254-9222-8a57970f51a6)](https://unfoldadmin.com/studio?utm_medium=github&utm_source=unfold)
53
53
 
54
- ### Support package
54
+ ## Latest improvements
55
55
 
56
- If you need assistance with integrating or customizing Unfold, support packages are available. They include live 1:1 calls, implementation review, and ongoing Discord-based support fixed price, no ongoing commitment. Learn more at [unfoldadmin.com/support](https://unfoldadmin.com/support/?utm_medium=github&utm_source=unfold).
56
+ - **Datasets**: Display custom changelists on change form detail pages.
57
+ - **Command**: Offers a command palette for quick searching across all models or custom-injected data.
58
+ - **Constance**: Official `django-constance` support with a completely new design and UX improvements.
57
59
 
58
- ### Unfold Studio
60
+ ## Core features
59
61
 
60
- Unfold Studio lets you visually customize your Django admin without writing code — update colors, logos, sidebar, and interface styles to match your brand in minutes. Give your admin a polished, professional look that feels truly yours. Available at [unfoldadmin.com/studio](https://unfoldadmin.com/studio).
61
-
62
- ## Fresh Features & Enhancements
63
-
64
- - **django-constance**: Official support with a completely new design and UX improvements
65
- - **Paginated inlines:** Break down large record sets into pages within inlines for better admin performance
66
- - **Conditional fields:** Show or hide fields dynamically based on the values of other fields in the form
67
- - **Infinite paginator:** Efficiently handle large datasets with seamless pagination that reduces server load
68
- - **Checkbox & radio filters:** Enhanced filter options with checkbox and radio interfaces for intuitive filtering
69
-
70
- ## Core Features & Capabilities
71
-
72
- - **Visual Interface**: Provides a modern user interface based on the Tailwind CSS framework.
62
+ - **Visual interface**: Provides a modern user interface based on the Tailwind CSS framework.
73
63
  - **Sidebar navigation**: Simplifies the creation of sidebar menus with icons, collapsible sections, and more.
74
64
  - **Dark mode support**: Includes both light and dark mode themes.
75
65
  - **Flexible actions**: Provides multiple ways to define actions throughout the admin interface.
76
66
  - **Advanced filters**: Features custom dropdowns, autocomplete, numeric, datetime, and text field filters.
77
67
  - **Dashboard tools**: Includes helpers for building custom dashboard pages.
78
68
  - **UI components**: Offers reusable interface components such as cards, buttons, and charts.
79
- - **Crispy forms**: Custom template pack for django-crispy-forms to style forms with Unfold's design system
69
+ - **Crispy forms**: Custom template pack for django-crispy-forms to style forms with Unfold's design system.
80
70
  - **WYSIWYG editor**: Built-in support for WYSIWYG editing through Trix.
81
- - **Array widget:** Built-in widget for `django.contrib.postgres.fields.ArrayField`
82
- - **Inline tabs:** Group inlines into tab navigation in the change form
83
- - **Conditional fields:** Show or hide fields dynamically based on the values of other fields in the form
84
- - **Model tabs:** Allow defining custom tab navigation for models
85
- - **Fieldset tabs:** Merge multiple fieldsets into tabs in the change form
86
- - **Sortable inlines:** Allow sorting inlines by dragging and dropping
87
- - **Environment label:** Distinguish between environments by displaying a label
88
- - **Nonrelated inlines:** Display nonrelated models as inlines in the change form
89
- - **Paginated inlines:** Break down large record sets into pages within inlines for better admin performance
90
- - **Favicons:** Built-in support for configuring various site favicons
91
- - **Themes:** Allow customization of color scheme, background color, border radius, and more
92
- - **Font colors:** Adjust font colors for better readability
93
- - **Changeform modes:** Display fields in compressed mode in the change form
94
- - **Language switcher:** Allow changing language directly from the admin area
71
+ - **Array widget:** Built-in widget for `django.contrib.postgres.fields.ArrayField`.
72
+ - **Inline tabs:** Group inlines into tab navigation in the change form.
73
+ - **Conditional fields:** Show or hide fields dynamically based on the values of other fields in the form.
74
+ - **Model tabs:** Allow defining custom tab navigation for models.
75
+ - **Fieldset tabs:** Merge multiple fieldsets into tabs in the change form.
76
+ - **Sortable inlines:** Allow sorting inlines by dragging and dropping.
77
+ - **Command**: Offers a command palette for quick searching across all models or custom-injected data.
78
+ - **Datasets**: Custom changelists `ModelAdmin` displayed on change form detail pages.
79
+ - **Environment label:** Distinguish between environments by displaying a label.
80
+ - **Nonrelated inlines:** Display nonrelated models as inlines in the change form.
81
+ - **Paginated inlines:** Break down large record sets into pages within inlines for better admin performance.
82
+ - **Favicons:** Built-in support for configuring various site favicons.
83
+ - **Themes:** Allow customization of color scheme, background color, border radius, and more.
84
+ - **Font colors:** Adjust font colors for better readability.
85
+ - **Changeform modes:** Display fields in compressed mode in the change form.
86
+ - **Language switcher:** Allow changing language directly from the admin area.
95
87
  - **Infinite paginator:** Efficiently handle large datasets with seamless pagination that reduces server load
96
88
  - **Parallel admin:** Supports [running the default admin](https://unfoldadmin.com/blog/migrating-django-admin-unfold/?utm_medium=github&utm_source=unfold) alongside Unfold.
97
89
  - **Third-party packages:** Provides default support for multiple popular applications.
@@ -1,8 +1,8 @@
1
1
  unfold/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- unfold/admin.py,sha256=UeAG6y53kX5P7esCzCcqNztQ9WCujtscrjCyULeapvQ,7422
2
+ unfold/admin.py,sha256=tUzwLFV-auNMyt9Ri7woYZCFlwekHE8iy2fHTtjtmaE,8493
3
3
  unfold/apps.py,sha256=SlBXPYrUd2uXn67qFbRvbXSUk3XFWrF4-5WELgDCvho,381
4
4
  unfold/checks.py,sha256=e5HEhbXRcu3FwZDT_d-IbimeVpjJ6jgCUPXWvsUjEw0,2601
5
- unfold/components.py,sha256=vqkQzseYUvLXDohmTVAlbKopALjyX4WA9yglvdfhqu4,1283
5
+ unfold/components.py,sha256=E5sl0y3XDPSswHbRLVnJrdKNpZzZ-e5q4tLwMGACyZo,1270
6
6
  unfold/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  unfold/contrib/constance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  unfold/contrib/constance/apps.py,sha256=636jGQ_C15fp5WRccmuSeZCZ4GOQ2PhXSEe4769uqrQ,139
@@ -12,11 +12,11 @@ unfold/contrib/constance/templates/admin/constance/includes/results_list.html,sh
12
12
  unfold/contrib/filters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  unfold/contrib/filters/admin/__init__.py,sha256=7pooAoA2Y9MbBL_RTJBZeIAwV5ECrOvMbe0_egoHfew,1663
14
14
  unfold/contrib/filters/admin/autocomplete_filters.py,sha256=Jh3m3iQ8YubZRQDVzHPGfpk9RulOhHkZc0N7L6KV9wc,514
15
- unfold/contrib/filters/admin/choice_filters.py,sha256=wI_m5k8SLwHkWoFeCPvI0bN_RuF0RNyzRP3z8jor684,5651
15
+ unfold/contrib/filters/admin/choice_filters.py,sha256=_IoZaPlcpFLlr7j09lcJ6ALb4olShzKF8rJWKNKJMzo,6010
16
16
  unfold/contrib/filters/admin/datetime_filters.py,sha256=cVari_7jsfeYxJoRBhcAUOr6v9XdtDtMuMs-S1Irafo,7757
17
17
  unfold/contrib/filters/admin/dropdown_filters.py,sha256=exiIyU6c_as7XBJsaAPPx5b8eY3IDbuCFGPJu1b0ux4,3856
18
- unfold/contrib/filters/admin/mixins.py,sha256=Z8BrdqbnjM1Ldr7qfhb6aWeOXKc5NqUgp-1NDU7SqS4,5839
19
- unfold/contrib/filters/admin/numeric_filters.py,sha256=V2yKPngFQ-PjpaE-VG2CK4jcJ-UZylEhtgSXRGx_MxQ,6490
18
+ unfold/contrib/filters/admin/mixins.py,sha256=A0G4pwmpaEg4VHk6fBXHHtiancpsJl9JsQSefmMLZso,5823
19
+ unfold/contrib/filters/admin/numeric_filters.py,sha256=dRjerPcdKb0yMrdCDR_zOSzju3s9-1RCBshg1654r2U,6475
20
20
  unfold/contrib/filters/admin/text_filters.py,sha256=19cOEGpSaXafcM8QuGiYaWmNi5UIQnCXEhKG-vCTfe8,2088
21
21
  unfold/contrib/filters/apps.py,sha256=wEySJy0gMLzFLb9XNKE-RexiO05X7NaQ5QmxZyziJ_k,136
22
22
  unfold/contrib/filters/forms.py,sha256=cebAmMPKtofdwvUhAVaoP5V3rNhwYe0Df5k06TJwZfo,8560
@@ -44,7 +44,7 @@ unfold/contrib/forms/static/unfold/forms/js/trix.config.js,sha256=spkNBlJVk_pqid
44
44
  unfold/contrib/forms/templates/unfold/forms/array.html,sha256=EKN_Tk1YKrdhZfOcC9aMKZMKyIiBk9frF0tYDWXqiDA,1799
45
45
  unfold/contrib/forms/templates/unfold/forms/helpers/toolbar.html,sha256=_sPtxaK14XzdfB6sAwA7ZYHbfIMtaKbORByxjxXoNh8,10130
46
46
  unfold/contrib/forms/templates/unfold/forms/wysiwyg.html,sha256=uLLf59jsD3apAm9Uh1TH4pwCOtO7pL2djAeZLOHyNAI,399
47
- unfold/contrib/forms/widgets.py,sha256=ctGrtqEnT9Azdr6oMTpqe7vCd_lECx7QKzaPE8-McLs,3394
47
+ unfold/contrib/forms/widgets.py,sha256=qjQ7al5CTVpBhsvTVr-6dTplJHB4dWeMxgh1tjU7Crc,3356
48
48
  unfold/contrib/guardian/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  unfold/contrib/guardian/apps.py,sha256=ObJqwh4vHxkD4XfduP5IQAiYiWZxsXUOUqF1_R1GsRI,136
50
50
  unfold/contrib/guardian/templates/admin/guardian/model/change_form.html,sha256=FSJc4MYYWyzZAy8Ay0b7Ov-cUo-oELHOM5fQehM54Lg,403
@@ -73,10 +73,10 @@ unfold/contrib/import_export/templates/admin/import_export/import_preview.html,s
73
73
  unfold/contrib/import_export/templates/admin/import_export/import_validation.html,sha256=K7j5OlWMQUTcSVulJtIraKfWIupSvmN4R5bZ2hH4tRA,5117
74
74
  unfold/contrib/import_export/templates/admin/import_export/resource_fields_list.html,sha256=Bc6uD8aHA5YYbZgLAPpGUckFjnxn9uq19YuKKFxTj4Y,887
75
75
  unfold/contrib/inlines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
- unfold/contrib/inlines/admin.py,sha256=__U86gR2OfdEiLPmOsKwTu7t8X2be8_jL-NL1SSNb3Q,6066
76
+ unfold/contrib/inlines/admin.py,sha256=7KNC1vikoOcpIwFu6oc1UvaS7u02VsnRypF5Z7qno9I,6050
77
77
  unfold/contrib/inlines/apps.py,sha256=Z9JBnzywq-DanZbD56fG0ndBfLXbojzkjVBleqoOBSU,136
78
78
  unfold/contrib/inlines/checks.py,sha256=0vkHUh-MtNSTrcOjCLbZmtI4961fFOygOv_dBAps6zw,534
79
- unfold/contrib/inlines/forms.py,sha256=noZdrBgvsu9tCBbRW3f9p7o6xKSuXtWR14qbZPdZBPA,1395
79
+ unfold/contrib/inlines/forms.py,sha256=yqhYxiNfcjMwMrNrCpN7wCnJtZytwt90jmPNfV_WWP0,1403
80
80
  unfold/contrib/location_field/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
81
81
  unfold/contrib/location_field/apps.py,sha256=qbNLfWXWf9q_gZxnuwFNVj20liSk_OT29uWMAi1she8,150
82
82
  unfold/contrib/location_field/templates/location_field/map_widget.html,sha256=vIBWNxIiCZipMnnPkZBFEZa-F3qXTKz9t4DbMmiBSSM,184
@@ -86,26 +86,29 @@ unfold/contrib/simple_history/templates/simple_history/object_history.html,sha25
86
86
  unfold/contrib/simple_history/templates/simple_history/object_history_form.html,sha256=TuQ_Fwrefjo3p9A-2asBxVq9bRJ9j5r11Jy-uS7K0TU,751
87
87
  unfold/contrib/simple_history/templates/simple_history/object_history_list.html,sha256=kMtxD5II32etsk05IArxe_wGvVjrizMVVH8uRl5RjR0,6816
88
88
  unfold/contrib/simple_history/templates/simple_history/submit_line.html,sha256=PEoPmWcWiiBIMs6XtXcoXswDtxp3FgntR3maieLDt4Y,1618
89
- unfold/dataclasses.py,sha256=XDQp7fcvto7YC8A68tc6TUhXY7s3je9nm3AVUdxrJ7Y,859
90
- unfold/decorators.py,sha256=jPiYFy1p0WGFn68VZhAZkYCPDF7argb9SDFaH6aemHk,4922
89
+ unfold/dataclasses.py,sha256=nCzcUufg60HHlJcAAgfSI_YPjXil3s2uMMhlJI0Lidk,803
90
+ unfold/datasets.py,sha256=LXBNlNRdkp846tjTyKz49ckjTTnzjzJiOqCaOu-jkC8,2812
91
+ unfold/decorators.py,sha256=WWDhYipXs-z9ppyAteC9HVWJGvv8B-gIigrTF6hj4KM,4844
91
92
  unfold/enums.py,sha256=9sTfyEycMWeoGPBa-ft6ZhQGnW1vkFg108RMBVf9nko,187
92
93
  unfold/exceptions.py,sha256=gcCj1ox61E137bk_0Cqy4YC3SttdPgB-fiJUqpmyHSE,43
93
- unfold/fields.py,sha256=qdnwYbl2NXbTdv1S_nct08UBWJTvoQ2hIrnzNxahJfg,8378
94
- unfold/forms.py,sha256=0u4TFw7oQ96S7njzJ2G79Qzt1X-4P4px-kfMgjVt49o,7762
94
+ unfold/fields.py,sha256=883cbZFen5Ss8OKxAVrIbFynYn4em3TkWkyCksMcPWo,8344
95
+ unfold/forms.py,sha256=Bno2c1tj7FgY0Q0ItYD3IqX4sQl_sf-AsOzKlumA2vI,8687
95
96
  unfold/layout.py,sha256=Q-dFTA6UlvvPCA4PsGyTkHQmBLO7PL56xBfZi-bdt0c,1459
96
- unfold/mixins/__init__.py,sha256=YlhoDs9Y_DXQ8Ejr3enxuHMS1-Ij9fwukxNwpeOS4Co,190
97
- unfold/mixins/action_model_admin.py,sha256=9Zt4FLrQWEQSO2vrpwjzpFo_I3_yE000uEwHndsW5kg,12365
98
- unfold/mixins/base_model_admin.py,sha256=Vr_Sd4xEsdekeKX8N70oiheYBzk2EwXbOX_frRw4JnE,4802
97
+ unfold/mixins/__init__.py,sha256=_CK7vkPIOXpo7hnN6Xavc9-3JjCaFYtgqdzXl-0OAbo,285
98
+ unfold/mixins/action_model_admin.py,sha256=h5z1ZqjIdqzSbe-pTrV8Yrw7ipp1OXATLXMjBe9Q6Hk,12332
99
+ unfold/mixins/base_model_admin.py,sha256=rAZspMkeESgSsbyFpubCr4gDbi7SopvT6--stRhqGRI,4777
100
+ unfold/mixins/dataset_model_admin.py,sha256=oEHiwutGaPGdcYvwUsJb8IYPmnJDf9waZ_2KeTFE8Tw,2079
99
101
  unfold/overrides.py,sha256=ERVY9boZiXgjDYcTEZcIp7KWoeBZ45VM_zN31yAOjyQ,2922
100
102
  unfold/paginator.py,sha256=bZiEY-1kqZy_6CYGs9fHo6WntMgpnFCH-LJPoXkEESk,533
101
103
  unfold/sections.py,sha256=Lcg3xCZ76fqjm4vD4x7YdE5VsbTKluL-sX5QTEBlHxA,2379
102
- unfold/settings.py,sha256=o_yjhM1OgW2KSrae4oeUqjLw3lI9HZ1lkKGUW4nuC4Q,3432
103
- unfold/sites.py,sha256=NIO2vjCmSabI4aWZmpEbjgiSv4m3q0qKPoQjaAdxwIA,21380
104
+ unfold/settings.py,sha256=WsCaTH3lNeOwCUTyfvYPWbinyxwrJpJ9rXHDtjhZGTM,3454
105
+ unfold/sites.py,sha256=clcgZ7RWIIBGhUvV37SxZpp0uXFFpMfY1WemJKSFzU4,21498
106
+ unfold/static/admin/js/actions.js,sha256=evjnEwMKmI4Xcw_W1nMMAArCtAbAJnqx1BXmX7OBQug,7977
104
107
  unfold/static/admin/js/admin/RelatedObjectLookups.js,sha256=ubKKhWmX_QborwPnaLHuQshTwQw6tK1pAViWdKIjw4E,9222
105
108
  unfold/static/admin/js/inlines.js,sha256=UXtFzCWHZWIJbxRghlNsNsz8HuRHjcaH1Mvb5e6uJms,16222
106
109
  unfold/static/unfold/css/simplebar/LICENSE,sha256=okNJf6UFl2NrEiC4iqORNBa16IKgUgV88acdcl9FbtY,1081
107
110
  unfold/static/unfold/css/simplebar/simplebar.css,sha256=5LLaEM11pKi6JFCOLt4XKuZxTpT9rpdq_tNlaQytFlU,4647
108
- unfold/static/unfold/css/styles.css,sha256=4JvNtrvUk6tlpGSyQpnbxCCa3YPMmyKnSqEDUVT0-Po,211751
111
+ unfold/static/unfold/css/styles.css,sha256=CBvEiY0xHXKyZUCWBsNIb-xam7t_7xFdxP8ENEZIT54,200460
109
112
  unfold/static/unfold/fonts/inter/Inter-Bold.woff2,sha256=-oiBJ7baAVtlVp8DUfO1w5GtkokElR8cIOn4RiqNleo,114840
110
113
  unfold/static/unfold/fonts/inter/Inter-Medium.woff2,sha256=D_PpRhThST61VjFP0keubEqFp3g7TMhr5TmUDPg_Kkg,114348
111
114
  unfold/static/unfold/fonts/inter/Inter-Regular.woff2,sha256=4G9rG8VTqupORmgCPtCrChRxKcMQf1Ebx9A9NhsK4IU,111268
@@ -113,7 +116,7 @@ unfold/static/unfold/fonts/inter/Inter-SemiBold.woff2,sha256=XLcQPk5gWYmv68A9mJx
113
116
  unfold/static/unfold/fonts/inter/LICENSE,sha256=JiSB6ERSGzJvXs0FPlm5jIstp4yO4b27boF0MF5Uk1o,4380
114
117
  unfold/static/unfold/fonts/inter/styles.css,sha256=QqdgevXVfcD6vZGo8ciSkaEG_62_YcZg0hvHTNgJ56E,608
115
118
  unfold/static/unfold/fonts/material-symbols/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
116
- unfold/static/unfold/fonts/material-symbols/Material-Symbols-Outlined.woff2,sha256=sMDmadC_mJOI200LuWcwAZRwAqDWLgdj85JA0x42qu8,274228
119
+ unfold/static/unfold/fonts/material-symbols/Material-Symbols-Outlined.woff2,sha256=NWHJRGrf1tCwi8fCvO0PZJf8UcKjeTC4lb6O5fNu-sg,291696
117
120
  unfold/static/unfold/fonts/material-symbols/styles.css,sha256=e9bdHCS0_PeaBQ7BmWkCf-3UqZbASW1tb6EAxukCD7w,164
118
121
  unfold/static/unfold/js/alpine/LICENSE,sha256=XwXEkl3T7fBJpwtLQDrA3UOyD3JQHZNZkR3dJdWsZX0,1092
119
122
  unfold/static/unfold/js/alpine/alpine.anchor.js,sha256=2Jg9aUq749pjFynzr_H1NK3lf-nXrbHMtO9wvlWJyIQ,15524
@@ -121,7 +124,7 @@ unfold/static/unfold/js/alpine/alpine.js,sha256=PtHu0lJIiSHfZeNj1nFd6wTX-Squ255S
121
124
  unfold/static/unfold/js/alpine/alpine.persist.js,sha256=jFBwr6faTqqhp3sVi4_VTxJ0FpaF9YGZN1ZGLl_5QYM,837
122
125
  unfold/static/unfold/js/alpine/alpine.resize.js,sha256=mXR2L6neT584cfNLY5_imDq5DKjW1noXys7fhb1yxY4,703
123
126
  unfold/static/unfold/js/alpine/alpine.sort.js,sha256=q6LxgConwu8M8R03mZSBcsKwJv6fF7oomP8sqLxVQ0w,37891
124
- unfold/static/unfold/js/app.js,sha256=r04hhe9FYimSvd_SLbP6AwgjaxE2HioFG3YLYaFH4YU,16282
127
+ unfold/static/unfold/js/app.js,sha256=GW-kAIuEW56h0Eaws0opoK1Ck-eTVjnj5hcbwzeZxIA,16352
125
128
  unfold/static/unfold/js/chart/LICENSE,sha256=QahKosq6ZF-WahjZwgVrc-bTqB2AvABGvAARomNNTM4,1093
126
129
  unfold/static/unfold/js/chart/chart.js,sha256=22W6cFERR-CElMOKRgMMicueMVP0Vf7FBEBYH8Z8tCk,200633
127
130
  unfold/static/unfold/js/htmx/LICENSE,sha256=09JFb3ZBTyRWEEZg69Za_xwEzXlmuUK9q9Y_PNsxajg,642
@@ -129,38 +132,39 @@ unfold/static/unfold/js/htmx/htmx.js,sha256=acrv0NqSJpBm5yXX_hdeJrnVDJYuMFZFnAxH
129
132
  unfold/static/unfold/js/select2.init.js,sha256=SeUUXgwLi26Tmh1Sgl3al4WeqlvmbZgixmTtwhJMMq0,1009
130
133
  unfold/static/unfold/js/simplebar/LICENSE,sha256=okNJf6UFl2NrEiC4iqORNBa16IKgUgV88acdcl9FbtY,1081
131
134
  unfold/static/unfold/js/simplebar/simplebar.js,sha256=t-uG1FAD6ZoiMeN--wac0XRS7SxoDVG6zvRnGuEp7X8,27176
132
- unfold/styles.css,sha256=6-pbdH8mHbV60EZ8RUR_gxzI6IN4-CaYbKZuzEslX7A,21608
133
- unfold/templates/admin/actions.html,sha256=iuuubcAILkOoYBgV6cpXqFIyZUh4zMqyFp0JaDFlPKU,3096
135
+ unfold/styles.css,sha256=4GfTn3K3y-X1xa6w2V6489XqmsxTSOwqtrKlCEaRE6c,21527
136
+ unfold/templates/admin/actions.html,sha256=RqlwNDMQheDTTHLZvvUClcFdfbGPmSvSYcBHKavFDfY,3112
134
137
  unfold/templates/admin/app_index.html,sha256=hcXcaEwqKYTaClnGzlBEsTzy3YJn_37AiFs4YVbvX8A,585
135
138
  unfold/templates/admin/app_list.html,sha256=-DEZKFdmkdTq3rix_cgZurPZ1r8PHg5pBL3i7ZtzVdI,2972
136
139
  unfold/templates/admin/auth/user/add_form.html,sha256=-_YY4guGdAbw2rCskrQfRAAvQF2XzVHt5UMI0fsLDm4,337
137
140
  unfold/templates/admin/auth/user/change_password.html,sha256=3NIopJ8JFN4iv428kUTqRthZvmden9sb0-D7AKohRjA,1577
138
141
  unfold/templates/admin/base.html,sha256=CuttiTMMtEiPNIEv4VXt27UGITgqPZaz5V8BJlBEOdk,1663
139
142
  unfold/templates/admin/base_site.html,sha256=UOsecaCycpyn_ygJNIKO7MQtDFJuHv--r83-mzaVY30,300
140
- unfold/templates/admin/change_form.html,sha256=yY0XLtN52_XHN5EofvQ1bGdhlkG38qhDvGxePhM1_Ak,4690
143
+ unfold/templates/admin/change_form.html,sha256=Ir0TOUElOZCzNI-iplOAMRz8OZ-W76sDsD6ztn13tlA,5005
141
144
  unfold/templates/admin/change_form_object_tools.html,sha256=eyeH-i2HgEM0Yi-OJA2D1VnKJyC19A_my1IDGxxoP8Y,593
142
- unfold/templates/admin/change_list.html,sha256=aesNLu_b4j90Q08nWpMlVembYuH0TMGhwO7DJMMrSsI,4503
145
+ unfold/templates/admin/change_list.html,sha256=8sqmJ7ZSXYB2x2IQDhC78BZR5smhKioOeTZtVIOb0iA,4523
143
146
  unfold/templates/admin/change_list_object_tools.html,sha256=cmMiT2nT20Ph5yfpj9aHPr76Z-JP4aSXp0o-Rnad28s,147
144
- unfold/templates/admin/change_list_results.html,sha256=NZmqOajOP9-TSJSUZxU7z-6_cpJX8rgrcvPoQfehMb8,8193
147
+ unfold/templates/admin/change_list_results.html,sha256=n56FDtmFuNq9Zsd5wNyzBqHWBnwY9TN66x92pBFEz-c,5081
148
+ unfold/templates/admin/dataset_actions.html,sha256=5THF5nONRySRY3iiMh76OUHyq5ay3YqbR3WKhGkxAeo,2173
145
149
  unfold/templates/admin/date_hierarchy.html,sha256=A-sIqBKzZTMqSn3NSHORIL1yTEAqhj4Atff0OvWtqT0,1413
146
150
  unfold/templates/admin/delete_confirmation.html,sha256=0vHhrbUAOW8CXfkEB20JoA9qV5xRbyb5xGc1jpWcrN4,3661
147
151
  unfold/templates/admin/delete_selected_confirmation.html,sha256=mtRZyZH5xBRk60KktA8PZviAeI3yOH34cS_FDHaZOu0,3401
148
- unfold/templates/admin/edit_inline/stacked.html,sha256=EpTG-HPExprnY833xeFcqY8qTOnNXvDHYicgl2NkIZI,8628
149
- unfold/templates/admin/edit_inline/tabular.html,sha256=DtXaKC_0HEKPIphbqiykixQa1cRrEYcnLV7I3VlynhU,3020
152
+ unfold/templates/admin/edit_inline/stacked.html,sha256=Wus59qcHWXGPFrFpsWclSuBc9h5imNFkjxN7iN7e85s,8042
153
+ unfold/templates/admin/edit_inline/tabular.html,sha256=O3jD5Rul5WD32Cr2_AaNdh4G8sOcJlThkHHz1eHAXsY,2393
150
154
  unfold/templates/admin/filter.html,sha256=DEyrLgCWuncS1O1WR0vlt1evGQFvKoZV2pABkHzSoGU,2039
151
- unfold/templates/admin/includes/fieldset.html,sha256=UWcatsmHzfdcjZP58P94YL7BI3F-CP-BgYi2uC7FSb4,1471
155
+ unfold/templates/admin/includes/fieldset.html,sha256=KEJrPMKQCwv8D41lmooSc6KRqTMfIM2fz9UbO-kDYEc,1295
152
156
  unfold/templates/admin/includes/object_delete_summary.html,sha256=FgwfapZCKWtnFtTHqh1MRuxxLot4bAw92WCcR_V8ImI,444
153
157
  unfold/templates/admin/index.html,sha256=n9uEm32hjM3g5d2hkjRlgwcYcAcmVw6nBVS__h8BIRU,539
154
158
  unfold/templates/admin/login.html,sha256=E963dlzjZlkNc6WPJg9DiqijWAhRp1QLVCxFHkRca3g,2468
155
159
  unfold/templates/admin/nav_sidebar.html,sha256=NiNcLF-0eZwwv2arsikChzwbH7FTI1vEch427KddFlk,772
156
160
  unfold/templates/admin/object_history.html,sha256=4S9xpBtywUdFPUmvAuH2lMOG6jxCFZ-rFZYnhbajkRw,3726
157
161
  unfold/templates/admin/pagination.html,sha256=-9kjc_lKEeqvDVHMrnTfnlXDxMSkM8GNRGZGuI9D8os,912
158
- unfold/templates/admin/search_form.html,sha256=7ckco8llu5paptroZgr3jZw54DtowX-NiwFvxsCV898,1713
162
+ unfold/templates/admin/search_form.html,sha256=MsV5ZYAoWL0AE8-frQjKROPhmTpf9mXl72dDwDvGkQ0,1899
159
163
  unfold/templates/admin/submit_line.html,sha256=9FDZ5HOfiJG11HSMtA4rfqjKe3ucC-_OChpx1CGTLac,4626
160
164
  unfold/templates/auth/widgets/read_only_password_hash.html,sha256=MlaNXJ2PLEbv8Nd01BBp-AQEfMB13LNxD_DzRemXhCg,775
161
165
  unfold/templates/registration/logged_out.html,sha256=ytjIz3abnpERwUp1F8zn89HyrimSrb9wgUna3Iz0CJE,1202
162
- unfold/templates/registration/password_change_done.html,sha256=TjzRQ476BNkz3To2S7MhEXxA-zoqCI8Op_FjY0cRod0,364
163
- unfold/templates/registration/password_change_form.html,sha256=E9fRkSh7n5N7UQIy0oWpcvI1mVPQ0nYGlBrM_WTi9kw,1517
166
+ unfold/templates/registration/password_change_done.html,sha256=fl2fxUc7C2cNr23E3SqMVavJ-HAT9bpFw4XbFovgzSQ,347
167
+ unfold/templates/registration/password_change_form.html,sha256=e0iLRG1DVNEZIYu8Ej9YaNR8WXlzTskl670vdvXx8YM,1780
164
168
  unfold/templates/unfold/components/button.html,sha256=oJEamHBxDIjoQ1xqWuJWDMY5ItUo8jpkZrqFp_cCH5U,933
165
169
  unfold/templates/unfold/components/card.html,sha256=inSlz0IbriTQwA-I9sAa8A15NAfjqOWRka28vB-Eu_Q,1565
166
170
  unfold/templates/unfold/components/chart/bar.html,sha256=nDdDCUXvFd793OpNgNPQo0vBmvYngMsQyPHVTf1vfOw,297
@@ -185,31 +189,33 @@ unfold/templates/unfold/helpers/app_list_default.html,sha256=0TR2ZTy0KUqa6YR8Igi
185
189
  unfold/templates/unfold/helpers/attrs.html,sha256=Mwpj72kuwYj8hOT3J2T8qx6f1r_4xwwaS1slHA-82jI,166
186
190
  unfold/templates/unfold/helpers/boolean.html,sha256=zK8xL-fv1rktvUQSYL6O-yGGjpr3w5TDBb3uyw1bF3o,812
187
191
  unfold/templates/unfold/helpers/breadcrumb_item.html,sha256=9T6ojN7LOXIlgwSwlIwHgy5U22eQYtarCqcmzsQIoPU,201
188
- unfold/templates/unfold/helpers/change_list_actions.html,sha256=xuFMZel6kH014H9sl0hKvQo7LP0UxwlhFQHIUeyQxVM,643
192
+ unfold/templates/unfold/helpers/change_list_actions.html,sha256=YtcuNscPnULG0jxTEfx162_QdItDsi4oBoQJXX97Dfw,668
189
193
  unfold/templates/unfold/helpers/change_list_filter.html,sha256=WwU-AG4U5qZQ_sFs1z_jaaYBWqIv3ASmtKIQIhAp2gs,1908
190
194
  unfold/templates/unfold/helpers/change_list_filter_actions.html,sha256=K99hHgpCLaAHxv-eqIf4nOUfq6CeTQHekEeudKTRYME,2036
195
+ unfold/templates/unfold/helpers/change_list_headers.html,sha256=_pGLbrTuzmlowfydbCEjbKCqCf3z6juhGxMdb8l9j0M,3545
191
196
  unfold/templates/unfold/helpers/command.html,sha256=VDy7b6mlDL9kpt2VrCuUQwzjwUOPztUL3hrU2kp0tVs,2885
192
197
  unfold/templates/unfold/helpers/command_history.html,sha256=AB5elGPyY51aHuaWnwXddZmdcSadcqBOzdzjYqR4lfU,2866
193
198
  unfold/templates/unfold/helpers/command_results.html,sha256=3sYaBePPt9o_WDS9UeZojW-QZzbOGd474r2Elfn_33Q,3679
199
+ unfold/templates/unfold/helpers/dataset.html,sha256=iOuOSqcG20T6_KVcTd8VHIM7Oh03TtmQD4ELSFUXhlU,1286
194
200
  unfold/templates/unfold/helpers/delete_submit_line.html,sha256=7SNS0axGytvUih9KxtOzy9ZC5rwG9u99iQxlnUZQfdE,700
195
201
  unfold/templates/unfold/helpers/display_dropdown.html,sha256=IpOy8-hww4arAVjPIRsHrip30J3IEd2p-2BzD3BjIaA,2906
196
202
  unfold/templates/unfold/helpers/display_header.html,sha256=2u-5Vc3mA6rS3ZlOWm3WRNLUX1wmZy4OSmGY2mdPZYs,1714
197
203
  unfold/templates/unfold/helpers/display_label.html,sha256=LS9DWzYjHkYLV27sZDwyXlg2sLJ0AlId9FbjnXpsbfg,317
198
204
  unfold/templates/unfold/helpers/edit_inline/tabular_delete.html,sha256=wr8zmSUhKcoxxms6gJsBqBrANFTOXELYUvlr3XjnjnE,931
199
205
  unfold/templates/unfold/helpers/edit_inline/tabular_error.html,sha256=8XGlgUJ47JllmXhwPZDlcl81NzZmvuBIp8FZBWoeu9Q,336
200
- unfold/templates/unfold/helpers/edit_inline/tabular_field.html,sha256=QETtgDYirbFBMCRH0sRU8IkODS0fBouA6crZ_K4ufTA,1007
206
+ unfold/templates/unfold/helpers/edit_inline/tabular_field.html,sha256=xw4Mrxf6AirZcOyLeg5sRjlHBftWlCOE-_A9F-OEdEo,1004
201
207
  unfold/templates/unfold/helpers/edit_inline/tabular_heading.html,sha256=wvnpGFJVHFvamGLpRCpGoP7WALFKqR1KKvVIIRhWFQc,1520
202
208
  unfold/templates/unfold/helpers/edit_inline/tabular_row.html,sha256=eCyWEYvvDDCr9SR4_0ua5-GqCLIlFzgQYIZP0ip8cp8,2145
203
209
  unfold/templates/unfold/helpers/edit_inline/tabular_title.html,sha256=2sk1TRzpmwy8PPPMNdf6CJx0zVSk-I2q3yX8uEPjuxE,2710
204
- unfold/templates/unfold/helpers/empty_results.html,sha256=zN1XM6_9_Oj-inMZlDxEnicYfBRr4HhwS9ODAnMiRYc,1947
210
+ unfold/templates/unfold/helpers/empty_results.html,sha256=X0cno3qZ2nbiRQSMjH1zB97Z_nSVM7M0EOOGV6mx734,2117
205
211
  unfold/templates/unfold/helpers/field.html,sha256=KEs1SQRxzJ0x11zithlxVyv5zfQ9a_XGoJJ9AiWk1Vc,1038
206
212
  unfold/templates/unfold/helpers/field_readonly.html,sha256=4qtXjWE7SA2qZSTYLOv0lT4pQfD0TE34mvWQJY7jhS8,237
207
213
  unfold/templates/unfold/helpers/field_readonly_value.html,sha256=dQHLb3eWeTZnXVzT8vaCbFNb4H9NwwNAv3qOKpOfDtM,531
208
- unfold/templates/unfold/helpers/field_readonly_value_file.html,sha256=8P-4BO6eH6VfxihDsBj8vFsiMZsloaeoiDYgP3CYUIY,709
214
+ unfold/templates/unfold/helpers/field_readonly_value_file.html,sha256=1oHAVkn71WbVxKTjwQMyW03yIZBbKY-ZSorZA5wlrgI,710
209
215
  unfold/templates/unfold/helpers/fieldset_row.html,sha256=LriorPLXU4VmqstjX1oBc3T49H8CbhCrRxwQ7YfUSkI,1219
210
216
  unfold/templates/unfold/helpers/fieldset_row_checkbox.html,sha256=z4aRab--zJS2PC0jfKPez85IptKGRrqgkPpwW6_IKoo,1467
211
217
  unfold/templates/unfold/helpers/fieldset_row_field.html,sha256=cqLT1fHsCCszOHxvYlDFDTAd-6RRoOjdqfdBdhFgHOo,647
212
- unfold/templates/unfold/helpers/fieldsets_tabs.html,sha256=F-s-4imtLbp2IYad3lFcDtMDadI89FFjOx5da3WdaJI,1551
218
+ unfold/templates/unfold/helpers/fieldsets_tabs.html,sha256=AjNEaC0CB1LlhLtpwiljGESAQGu7KCCYCYOv28va6sg,1793
213
219
  unfold/templates/unfold/helpers/form_errors.html,sha256=mrv2_J7RPcLfVtoN1UHh3rfUyOSZpHl67wk1UGqtPcY,266
214
220
  unfold/templates/unfold/helpers/form_label.html,sha256=7FfaXfviQmqKpsA1E7NSwM8rJiMNLl9e73XQram0Pfs,249
215
221
  unfold/templates/unfold/helpers/header.html,sha256=cHAPz7niLLQDQbrZpURZS1hiA8OYLzkGaqnYzjgv8aE,1151
@@ -217,6 +223,7 @@ unfold/templates/unfold/helpers/header_back_button.html,sha256=axtIbVUtRZ5gDXL7q
217
223
  unfold/templates/unfold/helpers/header_title.html,sha256=-H3x6au-ZmMV1Y-HDeOs66MsL0XGKwQxYRnmDGuR268,510
218
224
  unfold/templates/unfold/helpers/help_text.html,sha256=fDsSptYt6aPO3xPdMgbpwaINaF1FGFmaOb_1FiS_Bsg,118
219
225
  unfold/templates/unfold/helpers/history.html,sha256=qxfCZxFIyl91qDpxfwozhmyVFZwULysA8Y_2H8XJ7bM,1937
226
+ unfold/templates/unfold/helpers/inline_heading.html,sha256=tV2MFa17UGB_SKxwqXMIXesmUXFK4FFx7RjyK1gXwBY,707
220
227
  unfold/templates/unfold/helpers/label.html,sha256=miawI37nl0totKxNekRvImHWOG2Og91ozBOny43y8C4,905
221
228
  unfold/templates/unfold/helpers/language_form.html,sha256=Ve1qfIcL4DV6cxYfhqGkC_KghDjNyEB8j3hYts1S34M,708
222
229
  unfold/templates/unfold/helpers/language_switch.html,sha256=vZiYutLOWChHUQRw1OaHIYVhfzl84-BfZq14FUCKvuo,1225
@@ -246,7 +253,7 @@ unfold/templates/unfold/helpers/site_logo.html,sha256=S_QJoT2qh0xw0ciaKxoT4GJ6QI
246
253
  unfold/templates/unfold/helpers/submit.html,sha256=6bfZ7V2PTJfSXGg4K3IEZ42oREkMdAVjfP8yaM8Tu0k,226
247
254
  unfold/templates/unfold/helpers/tab_action.html,sha256=mJd87_2qkSNQEwDZZCDkvll5ZbizBkPxWFnBR-kH89o,3431
248
255
  unfold/templates/unfold/helpers/tab_actions.html,sha256=koe4D-vm7PRPqZ4FPjo3KEfWARebcpt1KuUJ7oa7PK4,685
249
- unfold/templates/unfold/helpers/tab_items.html,sha256=GE1-5pC6CZShn666AxpZ548mfs3lKWzMkrBedjaKJfo,1945
256
+ unfold/templates/unfold/helpers/tab_items.html,sha256=Byz5ESjYPfgB9MBRHidEGRac2G_jyLrnpyIlZ00Hhos,2309
250
257
  unfold/templates/unfold/helpers/tab_list.html,sha256=7Jy4QrGfmKq4ORBi9w_Wya_b2QJZOZndvILDaM1unBc,386
251
258
  unfold/templates/unfold/helpers/theme_switch.html,sha256=Y46KKpULH_G-fKQuc5LzfSB7Pubcgj_dBJPRMwZoWxE,2408
252
259
  unfold/templates/unfold/helpers/unauthenticated_header.html,sha256=nBTHKonEmR87zMAivl48E4c1xOVcTujodn6H9rAf_6U,601
@@ -299,13 +306,13 @@ unfold/templates/unfold_crispy/uni_form.html,sha256=l9UNCUrIycgJ0p_B6qhtO_YxdARy
299
306
  unfold/templates/unfold_crispy/whole_uni_form.html,sha256=ufXRKCIGqkqKFOsh166rpKUnHpFMyBV4eYUCRhs3iws,475
300
307
  unfold/templates/unfold_crispy/whole_uni_formset.html,sha256=CYksfG2hRUdi5n691KW2ih-FfBxpOU4qVBfbOvcu1zs,873
301
308
  unfold/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
302
- unfold/templatetags/unfold.py,sha256=zzIQyP1O8j1KfzYbCT0TW3gJROj3dZJOq5Y6MbwUe8I,24376
303
- unfold/templatetags/unfold_list.py,sha256=WWQSCM4QmQMr8YddA4krFztuuUXo2y28RA7jZfOiewE,14415
304
- unfold/typing.py,sha256=i7LM2LiwYTAjT5-OLDUPVn5b9X-DMmHnjlZG2toWwSE,692
305
- unfold/utils.py,sha256=UY7ZvkQ6KXkY0OkThppZ1k1HggyUhV_2bZok-HpFBDA,6827
306
- unfold/views.py,sha256=SA6mtv3aJD861-aL5VNreQUP7GRZH6hK_60MChjm2MM,1641
307
- unfold/widgets.py,sha256=nu2oqcKhs3lhj9ueYfs3BqDzZT5raAE6jeAEgU4WrHE,24751
308
- django_unfold-0.67.0.dist-info/METADATA,sha256=HaIyDsX13qf8nRgmZqiECi0mT_zloMaF5dTWpuNkURk,10074
309
- django_unfold-0.67.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
310
- django_unfold-0.67.0.dist-info/licenses/LICENSE.md,sha256=Ltk_quRyyvV3J5v3brtOqmibeZSw2Hrb8bY1W3ya0Ik,1077
311
- django_unfold-0.67.0.dist-info/RECORD,,
309
+ unfold/templatetags/unfold.py,sha256=VsO7j7PlwbvFkHMlGwmvkU8WLeUxk0ON9xDYosiMB8Q,23334
310
+ unfold/templatetags/unfold_list.py,sha256=7bdseJ9WS5cyE8fQq2wtnm9F7YQXGWPTxx9pb15SzCE,16401
311
+ unfold/typing.py,sha256=N3W54YqV2Kig0y3sP2gHKM4ZuHxpzYe2L9J4ve9rnPg,651
312
+ unfold/utils.py,sha256=qNwL3Wsv3u8nzB5l9PXAXRp6w4p4qXDbQHJAScbXSy4,6804
313
+ unfold/views.py,sha256=4hnLureeD-5xVABO-EDFPoGHpmtOgAuyB7cE4QLkfos,2255
314
+ unfold/widgets.py,sha256=3kZ59Qeq0Vh3sOgcaeFvUbBB9cPBkjP712kyd8GusBc,24646
315
+ django_unfold-0.69.0.dist-info/METADATA,sha256=8Cgm7j9IlmsCMI8hic7VQEj_yER9tOeBOwZDIecHSMk,9318
316
+ django_unfold-0.69.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
317
+ django_unfold-0.69.0.dist-info/licenses/LICENSE.md,sha256=Ltk_quRyyvV3J5v3brtOqmibeZSw2Hrb8bY1W3ya0Ik,1077
318
+ django_unfold-0.69.0.dist-info/RECORD,,
unfold/admin.py CHANGED
@@ -1,5 +1,5 @@
1
1
  from functools import update_wrapper
2
- from typing import Any, Optional
2
+ from typing import Any
3
3
 
4
4
  from django import forms
5
5
  from django.contrib.admin import ModelAdmin as BaseModelAdmin
@@ -23,12 +23,17 @@ from django.utils.translation import gettext_lazy as _
23
23
  from django.views import View
24
24
 
25
25
  from unfold.checks import UnfoldModelAdminChecks
26
+ from unfold.datasets import BaseDataset
26
27
  from unfold.forms import (
27
28
  ActionForm,
28
29
  PaginationGenericInlineFormSet,
29
30
  PaginationInlineFormSet,
30
31
  )
31
- from unfold.mixins import ActionModelAdminMixin, BaseModelAdminMixin
32
+ from unfold.mixins import (
33
+ ActionModelAdminMixin,
34
+ BaseModelAdminMixin,
35
+ DatasetModelAdminMixin,
36
+ )
32
37
  from unfold.overrides import FORMFIELD_OVERRIDES_INLINE
33
38
  from unfold.typing import FieldsetsType
34
39
  from unfold.views import ChangeList
@@ -43,10 +48,14 @@ checkbox = UnfoldBooleanWidget(
43
48
  )
44
49
 
45
50
 
46
- class ModelAdmin(BaseModelAdminMixin, ActionModelAdminMixin, BaseModelAdmin):
51
+ class ModelAdmin(
52
+ BaseModelAdminMixin, ActionModelAdminMixin, DatasetModelAdminMixin, BaseModelAdmin
53
+ ):
47
54
  action_form = ActionForm
48
55
  custom_urls = ()
49
56
  add_fieldsets = ()
57
+ ordering_field = None
58
+ hide_ordering_field = False
50
59
  list_horizontal_scrollbar_top = False
51
60
  list_filter_submit = False
52
61
  list_filter_sheet = True
@@ -58,6 +67,7 @@ class ModelAdmin(BaseModelAdminMixin, ActionModelAdminMixin, BaseModelAdmin):
58
67
  change_form_after_template = None
59
68
  change_form_outer_before_template = None
60
69
  change_form_outer_after_template = None
70
+ change_form_datasets = ()
61
71
  compressed_fields = False
62
72
  readonly_preprocess_fields = {}
63
73
  warn_unsaved_form = False
@@ -72,7 +82,7 @@ class ModelAdmin(BaseModelAdminMixin, ActionModelAdminMixin, BaseModelAdmin):
72
82
 
73
83
  for filter in self.get_list_filter(self.request):
74
84
  if (
75
- isinstance(filter, (tuple, list))
85
+ isinstance(filter, tuple | list)
76
86
  and hasattr(filter[1], "form_class")
77
87
  and hasattr(filter[1].form_class, "Media")
78
88
  ):
@@ -83,12 +93,28 @@ class ModelAdmin(BaseModelAdminMixin, ActionModelAdminMixin, BaseModelAdmin):
83
93
  return media
84
94
 
85
95
  def changelist_view(
86
- self, request: HttpRequest, extra_context: Optional[dict[str, str]] = None
96
+ self, request: HttpRequest, extra_context: dict[str, str] | None = None
87
97
  ) -> TemplateResponse:
88
98
  self.request = request
99
+
100
+ if self.ordering_field and self.ordering_field not in self.list_editable:
101
+ list_editable = list(getattr(self, "list_editable", []))
102
+ list_editable.append(self.ordering_field)
103
+ self.list_editable = list_editable
104
+
89
105
  return super().changelist_view(request, extra_context)
90
106
 
91
- def get_fieldsets(self, request: HttpRequest, obj=None) -> FieldsetsType:
107
+ def get_list_display(self, request: HttpRequest) -> list[str]:
108
+ list_display = super().get_list_display(request)
109
+
110
+ if self.ordering_field and self.ordering_field not in list_display:
111
+ list_display.append(self.ordering_field)
112
+
113
+ return list_display
114
+
115
+ def get_fieldsets(
116
+ self, request: HttpRequest, obj: Model | None = None
117
+ ) -> FieldsetsType:
92
118
  if not obj and self.add_fieldsets:
93
119
  return self.add_fieldsets
94
120
  return super().get_fieldsets(request, obj)
@@ -119,7 +145,7 @@ class ModelAdmin(BaseModelAdminMixin, ActionModelAdminMixin, BaseModelAdmin):
119
145
 
120
146
  actions_list_urls = [
121
147
  path(
122
- action.path,
148
+ f"{action.path.removesuffix('/')}/",
123
149
  wrap(action.method),
124
150
  name=action.action_name,
125
151
  )
@@ -128,7 +154,7 @@ class ModelAdmin(BaseModelAdminMixin, ActionModelAdminMixin, BaseModelAdmin):
128
154
 
129
155
  action_detail_urls = [
130
156
  path(
131
- f"<path:object_id>/{action.path}",
157
+ f"<path:object_id>/{action.path.removesuffix('/')}/",
132
158
  wrap(action.method),
133
159
  name=action.action_name,
134
160
  )
@@ -137,7 +163,7 @@ class ModelAdmin(BaseModelAdminMixin, ActionModelAdminMixin, BaseModelAdmin):
137
163
 
138
164
  action_row_urls = [
139
165
  path(
140
- f"<path:object_id>/{action.path}",
166
+ f"<path:object_id>/{action.path.removesuffix('/')}/",
141
167
  wrap(action.method),
142
168
  name=action.action_name,
143
169
  )
@@ -152,7 +178,7 @@ class ModelAdmin(BaseModelAdminMixin, ActionModelAdminMixin, BaseModelAdmin):
152
178
  + urls
153
179
  )
154
180
 
155
- def _path_from_custom_url(self, custom_url) -> URLPattern:
181
+ def _path_from_custom_url(self, custom_url: tuple[str, str, View]) -> URLPattern:
156
182
  return path(
157
183
  custom_url[0],
158
184
  self.admin_site.admin_view(custom_url[2]),
@@ -161,13 +187,15 @@ class ModelAdmin(BaseModelAdminMixin, ActionModelAdminMixin, BaseModelAdmin):
161
187
  )
162
188
 
163
189
  def get_action_choices(
164
- self, request: HttpRequest, default_choices=BLANK_CHOICE_DASH
165
- ):
190
+ self,
191
+ request: HttpRequest,
192
+ default_choices: list[tuple[str, str]] = BLANK_CHOICE_DASH,
193
+ ) -> list[tuple[str, str]]:
166
194
  default_choices = [("", _("Select action"))]
167
195
  return super().get_action_choices(request, default_choices)
168
196
 
169
197
  @display(description=mark_safe(checkbox.render("action_toggle_all", 1)))
170
- def action_checkbox(self, obj: Model):
198
+ def action_checkbox(self, obj: Model) -> str:
171
199
  return checkbox.render(helpers.ACTION_CHECKBOX_NAME, str(obj.pk))
172
200
 
173
201
  def response_change(self, request: HttpRequest, obj: Model) -> HttpResponse:
@@ -177,14 +205,14 @@ class ModelAdmin(BaseModelAdminMixin, ActionModelAdminMixin, BaseModelAdmin):
177
205
  return res
178
206
 
179
207
  def response_add(
180
- self, request: HttpRequest, obj: Model, post_url_continue: Optional[str] = None
208
+ self, request: HttpRequest, obj: Model, post_url_continue: str | None = None
181
209
  ) -> HttpResponse:
182
210
  res = super().response_add(request, obj, post_url_continue)
183
211
  if "next" in request.GET:
184
212
  return redirect(request.GET["next"])
185
213
  return res
186
214
 
187
- def get_changelist(self, request, **kwargs):
215
+ def get_changelist(self, request: HttpRequest, **kwargs: Any) -> ChangeList:
188
216
  return ChangeList
189
217
 
190
218
  def get_formset_kwargs(
@@ -198,6 +226,9 @@ class ModelAdmin(BaseModelAdminMixin, ActionModelAdminMixin, BaseModelAdmin):
198
226
 
199
227
  return formset_kwargs
200
228
 
229
+ def get_changeform_datasets(self, request: HttpRequest) -> list[type[BaseDataset]]:
230
+ return self.change_form_datasets
231
+
201
232
 
202
233
  class BaseInlineMixin:
203
234
  formfield_overrides = FORMFIELD_OVERRIDES_INLINE
unfold/components.py CHANGED
@@ -1,4 +1,4 @@
1
- from typing import Any, Optional
1
+ from typing import Any
2
2
 
3
3
  from django.http import HttpRequest
4
4
 
@@ -21,7 +21,7 @@ class ComponentRegistry:
21
21
  cls._registry[class_name] = component_cls
22
22
 
23
23
  @classmethod
24
- def get_class(cls, class_name: str) -> Optional[type]:
24
+ def get_class(cls, class_name: str) -> type | None:
25
25
  return cls._registry.get(class_name)
26
26
 
27
27
  @classmethod
@@ -4,10 +4,11 @@ from typing import Any
4
4
  from django.contrib import admin
5
5
  from django.contrib.admin.views.main import ChangeList
6
6
  from django.core.validators import EMPTY_VALUES
7
- from django.db.models import QuerySet
7
+ from django.db.models import Model, QuerySet
8
8
  from django.http import HttpRequest
9
9
  from django.utils.translation import gettext_lazy as _
10
10
 
11
+ from unfold.admin import ModelAdmin
11
12
  from unfold.contrib.filters.admin.mixins import (
12
13
  ChoicesMixin,
13
14
  MultiValueMixin,
@@ -56,6 +57,17 @@ class CheckboxFilter(RadioFilter):
56
57
  form_class = CheckboxForm
57
58
  all_option = None
58
59
 
60
+ # TODO: remove once django 4.x is not supported
61
+ def __init__(
62
+ self,
63
+ request: HttpRequest,
64
+ params: dict[str, Any],
65
+ model: type[Model],
66
+ model_admin: ModelAdmin,
67
+ ) -> None:
68
+ self.request = request
69
+ super().__init__(request, params, model, model_admin)
70
+
59
71
  def value(self) -> list[Any]:
60
72
  return self.request.GET.getlist(self.parameter_name)
61
73
 
@@ -1,5 +1,5 @@
1
1
  from collections.abc import Generator
2
- from typing import Any, Optional
2
+ from typing import Any
3
3
 
4
4
  from django.contrib.admin.views.main import ChangeList
5
5
  from django.core.validators import EMPTY_VALUES
@@ -18,7 +18,7 @@ from unfold.contrib.filters.forms import (
18
18
 
19
19
 
20
20
  class ValueMixin:
21
- def value(self) -> Optional[str]:
21
+ def value(self) -> str | None:
22
22
  return (
23
23
  self.lookup_val[0]
24
24
  if self.lookup_val not in EMPTY_VALUES
@@ -29,7 +29,7 @@ class ValueMixin:
29
29
 
30
30
 
31
31
  class MultiValueMixin:
32
- def value(self) -> Optional[list[str]]:
32
+ def value(self) -> list[str] | None:
33
33
  return (
34
34
  self.lookup_val
35
35
  if self.lookup_val not in EMPTY_VALUES