django-smartbase-admin 1.0.17__py3-none-any.whl → 1.0.19__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.
@@ -7,6 +7,7 @@ from django_smartbase_admin.admin.site import sb_admin_site
7
7
 
8
8
  class SBAdminConfig(AppConfig):
9
9
  name = "django_smartbase_admin"
10
+ default_auto_field = "django.db.models.AutoField"
10
11
 
11
12
  def ready(self):
12
13
  super().ready()
@@ -4,6 +4,7 @@ from collections import defaultdict
4
4
  from collections.abc import Iterable
5
5
  from typing import Any, TYPE_CHECKING
6
6
 
7
+ from django.conf import settings
7
8
  from django.contrib import messages
8
9
  from django.contrib.admin.actions import delete_selected
9
10
  from django.core.exceptions import PermissionDenied
@@ -11,7 +12,6 @@ from django.db.models import F
11
12
  from django.http import HttpResponse, Http404, JsonResponse
12
13
  from django.shortcuts import redirect
13
14
  from django.template.response import TemplateResponse
14
- from django.templatetags.static import static
15
15
  from django.urls import reverse
16
16
  from django.utils.translation import gettext_lazy as _
17
17
 
@@ -244,7 +244,7 @@ class SBAdminBaseView(object):
244
244
  "TABLE_UPDATE_ROW_DATA_EVENT_NAME": TABLE_UPDATE_ROW_DATA_EVENT_NAME,
245
245
  "SELECT_ALL_KEYWORD": SELECT_ALL_KEYWORD,
246
246
  "SUPPORTED_FILE_TYPE_ICONS": SUPPORTED_FILE_TYPE_ICONS,
247
- "STATIC_BASE_PATH": static("sb_admin"),
247
+ "STATIC_BASE_PATH": f"{settings.STATIC_URL}sb_admin",
248
248
  }
249
249
  ),
250
250
  **self.get_color_scheme_context(request),