django-smartbase-admin 1.0.30__py3-none-any.whl → 1.0.32__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.
@@ -208,7 +208,7 @@ class SBAdminListAction(SBAdminAction):
208
208
  "search_field_placeholder": self.view.get_search_field_placeholder(
209
209
  self.threadsafe_request
210
210
  ),
211
- "list_actions": self.view.process_actions_permissions(
211
+ "list_actions": self.view.process_actions(
212
212
  self.threadsafe_request, list_actions
213
213
  ),
214
214
  "list_selection_actions": self.view.get_sbadmin_list_selection_actions_grouped(
@@ -388,6 +388,7 @@ class SBAdminBaseListView(SBAdminBaseView):
388
388
  if self.sbadmin_actions_initialized:
389
389
  return
390
390
  self.process_actions(request, self.get_sbadmin_list_selection_actions(request))
391
+ self.process_actions(request, self.get_sbadmin_list_actions(request))
391
392
  self.sbadmin_actions_initialized = True
392
393
 
393
394
  def init_view_dynamic(self, request, request_data=None, **kwargs) -> None:
@@ -407,7 +408,10 @@ class SBAdminBaseListView(SBAdminBaseView):
407
408
  request.request_data.configuration,
408
409
  force=True,
409
410
  )
410
- for list_action in self.get_sbadmin_list_selection_actions(request):
411
+ all_list_actions = self.get_sbadmin_list_selection_actions(
412
+ request
413
+ ) + self.get_sbadmin_list_actions(request)
414
+ for list_action in all_list_actions:
411
415
  if isinstance(list_action, SBAdminFormViewAction):
412
416
  form = list_action.target_view.form_class
413
417
  form.view = self
@@ -29,3 +29,8 @@ class DjangoCMSPluginSBAdmin(SBAdmin):
29
29
  ]
30
30
  self.sbadmin_fieldsets = fieldsets
31
31
  return fieldsets
32
+
33
+ def response_add(self, request, obj, **kwargs):
34
+ # response_add from CMSPluginBase
35
+ self.object_successfully_changed = True
36
+ return self.render_close_frame(request, obj)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-smartbase-admin
3
- Version: 1.0.30
3
+ Version: 1.0.32
4
4
  Summary:
5
5
  Home-page: https://smartbase-sk.github.io/django-smartbase-admin-docs/
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  django_smartbase_admin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  django_smartbase_admin/actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- django_smartbase_admin/actions/admin_action_list.py,sha256=F4b_KmXzuPaKywZK6lq1rYby0CCFU4aMIjv0xoAaUn8,19621
3
+ django_smartbase_admin/actions/admin_action_list.py,sha256=SzJQBCTj9xhVnbQi8h7LlQowzdZrNOUG1GRBgp2YFCI,19609
4
4
  django_smartbase_admin/actions/advanced_filters.py,sha256=Vm8b6TAwNehR8INjolFG7pEYL4ADO7XUiVOWpb0btM0,13481
5
5
  django_smartbase_admin/admin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  django_smartbase_admin/admin/admin_base.py,sha256=WQ5Zl25ggG7_oD-8Gvm9b2Pg9hPq6dFTVpW11cd2oLc,48144
@@ -10,7 +10,7 @@ django_smartbase_admin/apps.py,sha256=heZq5O2GHlkJdhUCHbRR7Nmm0irSxnL9NMqY43_O7V
10
10
  django_smartbase_admin/compilemessages.py,sha256=-_FEFQlOvE4L8UzSuUxSxZQjgGlwL9IZtmg59fW_kIQ,342
11
11
  django_smartbase_admin/engine/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  django_smartbase_admin/engine/actions.py,sha256=vmwMmo1mxxHSLTlbNwbH6h9ulxwDVJnF3r8d-axiKPI,2084
13
- django_smartbase_admin/engine/admin_base_view.py,sha256=07WSixM3mNjDA1S-CLRuMCBPafRW-3Hm9lg9ZEF1GOc,32275
13
+ django_smartbase_admin/engine/admin_base_view.py,sha256=NNHAnVVFCEZQq1_pkmb8jZPrw0xlD7ByfeDTIAagLWo,32460
14
14
  django_smartbase_admin/engine/admin_entrypoint_view.py,sha256=jfMfcYPfdre2abHfC4KIxaP_epJFuCeTcujGhGd4Tl4,624
15
15
  django_smartbase_admin/engine/admin_view.py,sha256=9wGffahDR3IYmhL9ZbX8uitwGdXdw5DIL5GnWBawmJM,4238
16
16
  django_smartbase_admin/engine/configuration.py,sha256=BCEu9N1G6UEtoQ8Ho1LCVGpVPtVOtTXJCjkBJxo5xws,8727
@@ -25,7 +25,7 @@ django_smartbase_admin/engine/menu_item.py,sha256=HP5EwjxBYygAg72RsgQyde62DI9CDg
25
25
  django_smartbase_admin/engine/modal_view.py,sha256=heo9r-RaRm2MuGtPd_fhWM2jRmxtctM-L59YZQOoOvs,2308
26
26
  django_smartbase_admin/engine/request.py,sha256=sFjxgmzGXUeCD3hEx-Eu-ebgF8CnrBJDH2e8LF1ieRg,2615
27
27
  django_smartbase_admin/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
- django_smartbase_admin/integration/django_cms.py,sha256=asLVmQUDHulGEpkqp5cUv6-aTcZPoeOllPE1_AIWUqM,1062
28
+ django_smartbase_admin/integration/django_cms.py,sha256=OuBrSxGR8Q5sV1i0W0_uWGu62H0MByWZhGaD_v0eGvo,1258
29
29
  django_smartbase_admin/locale/sk/LC_MESSAGES/django.mo,sha256=kZ8PxgEpqxP0b6b4T8vepKnD3Y-WWEbO5ix6Y_t2qVI,17027
30
30
  django_smartbase_admin/locale/sk/LC_MESSAGES/django.po,sha256=tsT1AHp82nwzPRuEA2gPfh1E3DwrUe7NWlcZpzFEIeo,19079
31
31
  django_smartbase_admin/makemessages.py,sha256=2sMMutEHGfJqNEuFtLrbCw8YjFKNuRHJR_team1kp0Y,381
@@ -716,7 +716,7 @@ django_smartbase_admin/views/global_filter_view.py,sha256=eYo1moJGyi7jc2cPDA5ZBi
716
716
  django_smartbase_admin/views/media_view.py,sha256=5BLWXuzynF7nM34t-mf2BQSRN5ojY8HxpLIqt7Jiq9g,292
717
717
  django_smartbase_admin/views/translations_view.py,sha256=hktmkJIZ0EJxgnzjHLIoRDY0ckFa5wkbaoFZg32UWYw,20441
718
718
  django_smartbase_admin/views/user_config_view.py,sha256=hUSmwxgGXJog7vhiD-zGpm6smo31sLNzW2VoXapHIjc,1865
719
- django_smartbase_admin-1.0.30.dist-info/LICENSE.md,sha256=okRGMBOYvyhprt2eTpX_QXqpzC0MODF-U7zX-4fKPjQ,1078
720
- django_smartbase_admin-1.0.30.dist-info/METADATA,sha256=fP_V-UCOw39zfmAn2vTyyHVXyZHxXgbPPEJWfnzIPkM,6573
721
- django_smartbase_admin-1.0.30.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
722
- django_smartbase_admin-1.0.30.dist-info/RECORD,,
719
+ django_smartbase_admin-1.0.32.dist-info/LICENSE.md,sha256=okRGMBOYvyhprt2eTpX_QXqpzC0MODF-U7zX-4fKPjQ,1078
720
+ django_smartbase_admin-1.0.32.dist-info/METADATA,sha256=RZ4PELcKQjSse0kTBGcmRQbuYAs2pb0eEowomMCb9Lk,6573
721
+ django_smartbase_admin-1.0.32.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
722
+ django_smartbase_admin-1.0.32.dist-info/RECORD,,