django-smartbase-admin 1.0.22__py3-none-any.whl → 1.0.24__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.
- django_smartbase_admin/admin/widgets.py +2 -2
- django_smartbase_admin/static/sb_admin/dist/main.js +1 -1
- django_smartbase_admin/static/sb_admin/src/js/main.js +1 -1
- django_smartbase_admin/templates/sb_admin/widgets/read_only_password_hash.html +3 -0
- django_smartbase_admin/templatetags/sb_admin_tags.py +15 -9
- django_smartbase_admin/views/user_config_view.py +18 -1
- {django_smartbase_admin-1.0.22.dist-info → django_smartbase_admin-1.0.24.dist-info}/METADATA +15 -3
- {django_smartbase_admin-1.0.22.dist-info → django_smartbase_admin-1.0.24.dist-info}/RECORD +10 -10
- {django_smartbase_admin-1.0.22.dist-info → django_smartbase_admin-1.0.24.dist-info}/LICENSE.md +0 -0
- {django_smartbase_admin-1.0.22.dist-info → django_smartbase_admin-1.0.24.dist-info}/WHEEL +0 -0
|
@@ -454,12 +454,12 @@ class SBAdminAutocompleteWidget(
|
|
|
454
454
|
if not related_model_admin:
|
|
455
455
|
return
|
|
456
456
|
if parsed_value and related_model_admin.has_view_or_change_permission(
|
|
457
|
-
request
|
|
457
|
+
request
|
|
458
458
|
):
|
|
459
459
|
context["widget"]["attrs"]["related_edit_url"] = (
|
|
460
460
|
related_model_admin.get_detail_url(parsed_value)
|
|
461
461
|
)
|
|
462
|
-
if related_model_admin.has_add_permission(request
|
|
462
|
+
if related_model_admin.has_add_permission(request):
|
|
463
463
|
context["widget"]["attrs"]["related_add_url"] = (
|
|
464
464
|
related_model_admin.get_new_url(request)
|
|
465
465
|
)
|