django-unfold 0.49.0__py3-none-any.whl → 0.49.1__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.3
2
2
  Name: django-unfold
3
- Version: 0.49.0
3
+ Version: 0.49.1
4
4
  Summary: Modern Django admin theme for seamless interface development
5
5
  License: MIT
6
6
  Keywords: django,admin,tailwind,theme
@@ -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=Km-_Tz17EKEgPr8ZvDT21KCx0JCOb_iWEPdxux2K54Y,11717
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.0.dist-info/LICENSE.md,sha256=Ltk_quRyyvV3J5v3brtOqmibeZSw2Hrb8bY1W3ya0Ik,1077
239
- django_unfold-0.49.0.dist-info/METADATA,sha256=Rn9yuoaPYQ_xomHRKms5bRBF_qlQvArpTT5lJE38r3Q,4840
240
- django_unfold-0.49.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
241
- django_unfold-0.49.0.dist-info/RECORD,,
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
- # `actions_submit_line` is a list of actions that are displayed in the submit line they
72
- # are displayed as form buttons
73
- actions_submit_line = self.get_actions_submit_line(request, object_id)
74
-
75
- # `actions_detail` may contain custom structure with dropdowns so it is needed
76
- # to use `_get_actions_navigation` to build the final structure for the template
77
- actions_detail = self._get_actions_navigation(
78
- self.actions_detail,
79
- self.get_actions_detail(request, object_id),
80
- object_id,
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
- extra_context.update(
84
- {
85
- "actions_submit_line": actions_submit_line,
86
- "actions_detail": actions_detail,
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