django-smartbase-admin 0.2.79__py3-none-any.whl → 0.2.80__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.
@@ -390,12 +390,10 @@ class SBAdminImageWidget(SBAdminBaseWidget, AdminImageWidget):
390
390
 
391
391
 
392
392
  class SBAdminFilerFileWidget(SBAdminBaseWidget, FilerAdminFileWidget):
393
- template_name = "sb_admin/widgets/filer_file.html"
394
-
395
393
  def __init__(self, form_field=None, *args, **kwargs):
396
394
  self.form_field = form_field
397
395
  super(FilerAdminFileWidget, self).__init__(
398
- form_field.rel, form_field.view.admin_site
396
+ form_field.rel, form_field.view.admin_site, *args, **kwargs
399
397
  )
400
398
 
401
399
  def render(self, name, value, attrs=None, renderer=None):
@@ -454,7 +452,9 @@ class SBAdminFilerFileWidget(SBAdminBaseWidget, FilerAdminFileWidget):
454
452
  "id": css_id,
455
453
  "admin_icon_delete": "admin/img/icon-deletelink.svg",
456
454
  }
457
- html = render_to_string(self.template_name, context)
455
+ # using template name directly to prevent override of template_name
456
+ # when calling render of ForeignKeyRawIdWidget
457
+ html = render_to_string("sb_admin/widgets/filer_file.html", context)
458
458
  return mark_safe(html)
459
459
 
460
460
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-smartbase-admin
3
- Version: 0.2.79
3
+ Version: 0.2.80
4
4
  Summary:
5
5
  Author: SmartBase
6
6
  Author-email: info@smartbase.sk
@@ -5,7 +5,7 @@ django_smartbase_admin/actions/advanced_filters.py,sha256=Vm8b6TAwNehR8INjolFG7p
5
5
  django_smartbase_admin/admin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  django_smartbase_admin/admin/admin_base.py,sha256=ihhQbo6gn0QOyjZnj0oYJ6Du06MgHB9j9jdwUdhm6IY,40324
7
7
  django_smartbase_admin/admin/site.py,sha256=VrJBhwgZsLa2GohvjnNL7m4dVR3S4Ou1V1UzfE1qOoQ,6577
8
- django_smartbase_admin/admin/widgets.py,sha256=amFg72GlGqF1mqnt2mMPf61E0v9yyNPdWVSlnHX-ROc,19081
8
+ django_smartbase_admin/admin/widgets.py,sha256=SrCf_pAzEPZj6OXJOYU0b9wlA9ICiBtalptKhY6MDnw,19189
9
9
  django_smartbase_admin/apps.py,sha256=C1wT1YUEZNKcUJfpD01nIZEFgYEsuav52WFKvEURRDU,545
10
10
  django_smartbase_admin/compilemessages.py,sha256=-_FEFQlOvE4L8UzSuUxSxZQjgGlwL9IZtmg59fW_kIQ,342
11
11
  django_smartbase_admin/engine/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -666,7 +666,7 @@ django_smartbase_admin/views/dashboard_view.py,sha256=vtz5emYTQ5WDFeLA8HrcmjSOVd
666
666
  django_smartbase_admin/views/global_filter_view.py,sha256=eYo1moJGyi7jc2cPDA5ZBiEgA7Hmc-DxbQvbqUpDkg8,1127
667
667
  django_smartbase_admin/views/media_view.py,sha256=5BLWXuzynF7nM34t-mf2BQSRN5ojY8HxpLIqt7Jiq9g,292
668
668
  django_smartbase_admin/views/translations_view.py,sha256=A02q1t13akLKd2Pg_ej4tVi5qPUKYxB2LqsBbYXM0l8,20267
669
- django_smartbase_admin-0.2.79.dist-info/LICENSE.md,sha256=okRGMBOYvyhprt2eTpX_QXqpzC0MODF-U7zX-4fKPjQ,1078
670
- django_smartbase_admin-0.2.79.dist-info/METADATA,sha256=t7pYYopFSbIEPgbDlM1dQLPb2hMLQVQP-k_LsrjAhG0,996
671
- django_smartbase_admin-0.2.79.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
672
- django_smartbase_admin-0.2.79.dist-info/RECORD,,
669
+ django_smartbase_admin-0.2.80.dist-info/LICENSE.md,sha256=okRGMBOYvyhprt2eTpX_QXqpzC0MODF-U7zX-4fKPjQ,1078
670
+ django_smartbase_admin-0.2.80.dist-info/METADATA,sha256=6236VNSwbjLNBkPz7VMYqwdTWdP1wtf1v5r8pdY8Skk,996
671
+ django_smartbase_admin-0.2.80.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
672
+ django_smartbase_admin-0.2.80.dist-info/RECORD,,