django-unfold 0.49.0__py3-none-any.whl → 0.49.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {django_unfold-0.49.0.dist-info → django_unfold-0.49.1.dist-info}/METADATA +1 -1
- {django_unfold-0.49.0.dist-info → django_unfold-0.49.1.dist-info}/RECORD +5 -5
- unfold/mixins/action_model_admin.py +18 -17
- {django_unfold-0.49.0.dist-info → django_unfold-0.49.1.dist-info}/LICENSE.md +0 -0
- {django_unfold-0.49.0.dist-info → django_unfold-0.49.1.dist-info}/WHEEL +0 -0
@@ -78,7 +78,7 @@ unfold/exceptions.py,sha256=gcCj1ox61E137bk_0Cqy4YC3SttdPgB-fiJUqpmyHSE,43
|
|
78
78
|
unfold/fields.py,sha256=J3goIMlP_XOmQ85Xgh2v5MylXSP1o5I7o9_So2FQn2k,7461
|
79
79
|
unfold/forms.py,sha256=BKv7eCbv29eCIuf1d_ZBmD4-_OIIzRaopiFd2nKbXNY,4520
|
80
80
|
unfold/mixins/__init__.py,sha256=YlhoDs9Y_DXQ8Ejr3enxuHMS1-Ij9fwukxNwpeOS4Co,190
|
81
|
-
unfold/mixins/action_model_admin.py,sha256=
|
81
|
+
unfold/mixins/action_model_admin.py,sha256=FI326hzuGzoPBvQrl9UF-mGcczMhJJaW5Qcb43_hH8I,11803
|
82
82
|
unfold/mixins/base_model_admin.py,sha256=PR4eqU48yB4CNy9Bjd7fjxbOFiFpZM4etYmBOSaRX_M,4140
|
83
83
|
unfold/overrides.py,sha256=ERVY9boZiXgjDYcTEZcIp7KWoeBZ45VM_zN31yAOjyQ,2922
|
84
84
|
unfold/settings.py,sha256=5gs0iewBoUUrsF9LHHqcGOhW1HnyfZWY_zXuATjJOzE,2671
|
@@ -235,7 +235,7 @@ unfold/typing.py,sha256=i7LM2LiwYTAjT5-OLDUPVn5b9X-DMmHnjlZG2toWwSE,692
|
|
235
235
|
unfold/utils.py,sha256=L0oC9-j1B__BZ21M7i6rTXNbzCQaZ4T0qHYQcNupk0A,5480
|
236
236
|
unfold/views.py,sha256=nqv-meiwGtCeET2r8WBVyijWnE94Dssc4QmdUVMMcEM,997
|
237
237
|
unfold/widgets.py,sha256=esW1wxdbZwUhF31ensitBF8_6kVq_Gp0_iDgv6F5Rr0,20246
|
238
|
-
django_unfold-0.49.
|
239
|
-
django_unfold-0.49.
|
240
|
-
django_unfold-0.49.
|
241
|
-
django_unfold-0.49.
|
238
|
+
django_unfold-0.49.1.dist-info/LICENSE.md,sha256=Ltk_quRyyvV3J5v3brtOqmibeZSw2Hrb8bY1W3ya0Ik,1077
|
239
|
+
django_unfold-0.49.1.dist-info/METADATA,sha256=TV-wBErjvceg-rCW_Qe4rP748lxMQJq2u2ggVrZmD6M,4840
|
240
|
+
django_unfold-0.49.1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
241
|
+
django_unfold-0.49.1.dist-info/RECORD,,
|
@@ -68,24 +68,25 @@ class ActionModelAdminMixin:
|
|
68
68
|
"""
|
69
69
|
extra_context = extra_context or {}
|
70
70
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
self.
|
79
|
-
|
80
|
-
|
81
|
-
|
71
|
+
if object_id:
|
72
|
+
# `actions_submit_line` is a list of actions that are displayed in the submit line they
|
73
|
+
# are displayed as form buttons
|
74
|
+
actions_submit_line = self.get_actions_submit_line(request, object_id)
|
75
|
+
|
76
|
+
# `actions_detail` may contain custom structure with dropdowns so it is needed
|
77
|
+
# to use `_get_actions_navigation` to build the final structure for the template
|
78
|
+
actions_detail = self._get_actions_navigation(
|
79
|
+
self.actions_detail,
|
80
|
+
self.get_actions_detail(request, object_id),
|
81
|
+
object_id,
|
82
|
+
)
|
82
83
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
84
|
+
extra_context.update(
|
85
|
+
{
|
86
|
+
"actions_submit_line": actions_submit_line,
|
87
|
+
"actions_detail": actions_detail,
|
88
|
+
}
|
89
|
+
)
|
89
90
|
|
90
91
|
return super().changeform_view(request, object_id, form_url, extra_context)
|
91
92
|
|
File without changes
|
File without changes
|