django-smartbase-admin 1.0.0__py3-none-any.whl → 1.0.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.
@@ -424,19 +424,13 @@ class SBAdminListAction(SBAdminAction):
424
424
  if field_key in fields_with_methods_to_call_by_field_key:
425
425
  field = fields_with_methods_to_call_by_field_key[field_key]
426
426
  object_id = row.get(self.get_pk_field().name, None)
427
- processed_value = value
428
427
  if field.view_method:
429
- processed_value = field.view_method(
430
- object_id, value, **additional_data
431
- )
432
- formatted_value = processed_value
428
+ value = field.view_method(object_id, value, **additional_data)
433
429
  if field.python_formatter:
434
- formatted_value = field.python_formatter(
435
- object_id, processed_value
436
- )
437
- row[field_key] = formatted_value
430
+ value = field.python_formatter(object_id, value)
438
431
  if isinstance(value, str) and not isinstance(value, SafeString):
439
- row[field_key] = escape(value)
432
+ value = escape(value)
433
+ row[field_key] = value
440
434
 
441
435
  def get_json_data(self):
442
436
  return self.get_data()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-smartbase-admin
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary:
5
5
  Author: SmartBase
6
6
  Author-email: info@smartbase.sk
@@ -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=lV-2HBqwip5uyX1FrpXXPxWvqDoP7-j6F1efYEW8KSo,19807
3
+ django_smartbase_admin/actions/admin_action_list.py,sha256=j8PoYgtxNpznf17WIgGbLpxfQ1Hg4waOu08vIh5UIbI,19548
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=Dnql1LQVeJWla3ItuHbVgakUXT3apUfWvWc9MmundsQ,41765
@@ -681,7 +681,7 @@ django_smartbase_admin/views/dashboard_view.py,sha256=vtz5emYTQ5WDFeLA8HrcmjSOVd
681
681
  django_smartbase_admin/views/global_filter_view.py,sha256=eYo1moJGyi7jc2cPDA5ZBiEgA7Hmc-DxbQvbqUpDkg8,1127
682
682
  django_smartbase_admin/views/media_view.py,sha256=5BLWXuzynF7nM34t-mf2BQSRN5ojY8HxpLIqt7Jiq9g,292
683
683
  django_smartbase_admin/views/translations_view.py,sha256=tkShf5IWyPDjNhcPQsvh8WXs-EMRCfG_oTD9x-LP1No,20272
684
- django_smartbase_admin-1.0.0.dist-info/LICENSE.md,sha256=okRGMBOYvyhprt2eTpX_QXqpzC0MODF-U7zX-4fKPjQ,1078
685
- django_smartbase_admin-1.0.0.dist-info/METADATA,sha256=db4oGD5Z2zYbwa3g2udG7KgIlUwRZrS97Ip83N4cNJA,4597
686
- django_smartbase_admin-1.0.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
687
- django_smartbase_admin-1.0.0.dist-info/RECORD,,
684
+ django_smartbase_admin-1.0.1.dist-info/LICENSE.md,sha256=okRGMBOYvyhprt2eTpX_QXqpzC0MODF-U7zX-4fKPjQ,1078
685
+ django_smartbase_admin-1.0.1.dist-info/METADATA,sha256=fp7hIGgl2hbuNiEkUkUZQ__cR_P3gIAxce5eaI-19yc,4597
686
+ django_smartbase_admin-1.0.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
687
+ django_smartbase_admin-1.0.1.dist-info/RECORD,,