django-cfg 1.4.71__py3-none-any.whl → 1.4.72__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.

Potentially problematic release.


This version of django-cfg might be problematic. Click here for more details.

django_cfg/__init__.py CHANGED
@@ -32,7 +32,7 @@ Example:
32
32
  default_app_config = "django_cfg.apps.DjangoCfgConfig"
33
33
 
34
34
  # Version information
35
- __version__ = "1.4.71"
35
+ __version__ = "1.4.72"
36
36
  __license__ = "MIT"
37
37
 
38
38
  # Import registry for organized lazy loading
@@ -6,7 +6,6 @@ Enhanced inline classes with better organization and conditional loading.
6
6
 
7
7
  from unfold.admin import TabularInline
8
8
 
9
- from django_cfg.apps.support.models import Ticket
10
9
  from django_cfg.modules.base import BaseCfgModule
11
10
 
12
11
  from ..models import UserActivity, UserRegistrationSource
@@ -135,6 +134,7 @@ class UserSupportTicketsInline(TabularInline):
135
134
 
136
135
  # Only import if support is enabled
137
136
  if base_module.is_support_enabled():
137
+ from django_cfg.apps.support.models import Ticket
138
138
  self.model = Ticket
139
139
  except (ImportError, Exception):
140
140
  # Support app not available or not enabled
@@ -262,6 +262,8 @@ class CustomUserAdmin(BaseUserAdmin, PydanticAdmin):
262
262
  @computed_field("Emails")
263
263
  def emails_count(self, obj):
264
264
  """Show count of emails sent to user (if newsletter app is enabled)."""
265
+ from django.db.utils import ProgrammingError, OperationalError
266
+
265
267
  try:
266
268
  base_module = BaseCfgModule()
267
269
 
@@ -278,12 +280,17 @@ class CustomUserAdmin(BaseUserAdmin, PydanticAdmin):
278
280
  variant="success",
279
281
  icon=Icons.EMAIL
280
282
  )
283
+ except (ProgrammingError, OperationalError):
284
+ # Table doesn't exist in database
285
+ return None
281
286
  except (ImportError, Exception):
282
287
  return None
283
288
 
284
289
  @computed_field("Tickets")
285
290
  def tickets_count(self, obj):
286
291
  """Show count of support tickets for user (if support app is enabled)."""
292
+ from django.db.utils import ProgrammingError, OperationalError
293
+
287
294
  try:
288
295
  base_module = BaseCfgModule()
289
296
 
@@ -300,6 +307,9 @@ class CustomUserAdmin(BaseUserAdmin, PydanticAdmin):
300
307
  variant="warning",
301
308
  icon=Icons.SUPPORT_AGENT
302
309
  )
310
+ except (ProgrammingError, OperationalError):
311
+ # Table doesn't exist in database
312
+ return None
303
313
  except (ImportError, Exception):
304
314
  return None
305
315
 
django_cfg/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "django-cfg"
7
- version = "1.4.71"
7
+ version = "1.4.72"
8
8
  description = "Django AI framework with built-in agents, type-safe Pydantic v2 configuration, and 8 enterprise apps. Replace settings.py, validate at startup, 90% less code. Production-ready AI workflows for Django."
9
9
  readme = "README.md"
10
10
  keywords = [ "django", "configuration", "pydantic", "settings", "type-safety", "pydantic-settings", "django-environ", "startup-validation", "ide-autocomplete", "ai-agents", "enterprise-django", "django-settings", "type-safe-config",]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-cfg
3
- Version: 1.4.71
3
+ Version: 1.4.72
4
4
  Summary: Django AI framework with built-in agents, type-safe Pydantic v2 configuration, and 8 enterprise apps. Replace settings.py, validate at startup, 90% less code. Production-ready AI workflows for Django.
5
5
  Project-URL: Homepage, https://djangocfg.com
6
6
  Project-URL: Documentation, https://djangocfg.com
@@ -1,5 +1,5 @@
1
1
  django_cfg/README.md,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- django_cfg/__init__.py,sha256=h0rks-p2ViXuDArmQqKHGPFF-dTD2tbQRwVBQJDVCSM,1620
2
+ django_cfg/__init__.py,sha256=xDdlpsN4-YhuruB3zP6WlJ-A2Yuw9I1zYQ-lixF1BNM,1620
3
3
  django_cfg/apps.py,sha256=72m3uuvyqGiLx6gOfE-BD3P61jddCCERuBOYpxTX518,1605
4
4
  django_cfg/config.py,sha256=y4Z3rnYsHBE0TehpwAIPaxr---mkvyKrZGGsNwYso74,1398
5
5
  django_cfg/apps/__init__.py,sha256=JtDmEYt1OcleWM2ZaeX0LKDnRQzPOavfaXBWG4ECB5Q,26
@@ -15,12 +15,12 @@ django_cfg/apps/accounts/admin/__init__.py,sha256=DODdxlRDj5rA9m_lV4ynefA92Yr0KC
15
15
  django_cfg/apps/accounts/admin/activity_admin.py,sha256=Dj27DkYQqoJMpaFtt54RK4X5wOSXP6KPP8GoV-fldy4,4103
16
16
  django_cfg/apps/accounts/admin/filters.py,sha256=UyiiDrYmgJQeUy9Strr0dmNkBfe9Acng2DNwSaHqg80,6087
17
17
  django_cfg/apps/accounts/admin/group_admin.py,sha256=5VCiR1hFwE-Qk9dAJK4PCRygUp-pXFn9wJpDbqfF3R4,2241
18
- django_cfg/apps/accounts/admin/inlines.py,sha256=6azkzRX5NsOKsWITooHOpB5inaLGcUN5v-pnX8tHtgI,5953
18
+ django_cfg/apps/accounts/admin/inlines.py,sha256=2nRGxheulkNltQlQ6sBajfnhFQmJqOb-fZGx1Orzya4,5969
19
19
  django_cfg/apps/accounts/admin/otp_admin.py,sha256=YM-04HFOr7uy9AGUdyuIE7YLwTCW2kQkh0HJjDR-X8g,2712
20
20
  django_cfg/apps/accounts/admin/registration_admin.py,sha256=Yohh3px81nKHR6xxD4uV8gkzSOOuA5JmVyOh6LuNEBY,4955
21
21
  django_cfg/apps/accounts/admin/resources.py,sha256=LBpBUAQfcvwwEolBDdLikSlaLf2gVcR3ww24SIkXepY,10944
22
22
  django_cfg/apps/accounts/admin/twilio_admin.py,sha256=ijZ_1jC4zja7AA2oBQ9rgkQpaogcvICNMzvowJcmYLs,8062
23
- django_cfg/apps/accounts/admin/user_admin.py,sha256=Qgsbs4C9X2fEyW7OwNqOkzycr8dj9VE-AidhiZP3aC4,8924
23
+ django_cfg/apps/accounts/admin/user_admin.py,sha256=FTaJsQONTMdW1xOuIgIEZP3McVB0eXc6Xsyf3MpFmag,9314
24
24
  django_cfg/apps/accounts/management/commands/otp_test.py,sha256=JtOq1vj4cz0UI8i5-1QmjLtPW2l7IBAfp_07iuu0TTY,6861
25
25
  django_cfg/apps/accounts/managers/__init__.py,sha256=2PEjf-iHSuXE5TBqoY6tI0d23ihovNdT5F7eKOjl2SI,50
26
26
  django_cfg/apps/accounts/managers/user_manager.py,sha256=7NCcfR0tgocXf6XPKTL2aNCHm2t03LrEzkCHqKX9OH0,10298
@@ -1105,9 +1105,9 @@ django_cfg/utils/version_check.py,sha256=WO51J2m2e-wVqWCRwbultEwu3q1lQasV67Mw2aa
1105
1105
  django_cfg/CHANGELOG.md,sha256=jtT3EprqEJkqSUh7IraP73vQ8PmKUMdRtznQsEnqDZk,2052
1106
1106
  django_cfg/CONTRIBUTING.md,sha256=DU2kyQ6PU0Z24ob7O_OqKWEYHcZmJDgzw-lQCmu6uBg,3041
1107
1107
  django_cfg/LICENSE,sha256=xHuytiUkSZCRG3N11nk1X6q1_EGQtv6aL5O9cqNRhKE,1071
1108
- django_cfg/pyproject.toml,sha256=7Zn6UAvEXMXiiiHcKVr09VYY_X6b4RJ2Xiq5-oDfkzg,8164
1109
- django_cfg-1.4.71.dist-info/METADATA,sha256=ZmMQg9GKyytymev_KUJB76A_cWtR5KQu15cVaoURgz0,22624
1110
- django_cfg-1.4.71.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1111
- django_cfg-1.4.71.dist-info/entry_points.txt,sha256=Ucmde4Z2wEzgb4AggxxZ0zaYDb9HpyE5blM3uJ0_VNg,56
1112
- django_cfg-1.4.71.dist-info/licenses/LICENSE,sha256=xHuytiUkSZCRG3N11nk1X6q1_EGQtv6aL5O9cqNRhKE,1071
1113
- django_cfg-1.4.71.dist-info/RECORD,,
1108
+ django_cfg/pyproject.toml,sha256=kEFqwl6GaVlwLny_D3ljqIIk0c5FNHxhRRrhL0l6wOg,8164
1109
+ django_cfg-1.4.72.dist-info/METADATA,sha256=HJC5pYczPM2qc1bwXuiEo_hpGwIDwgfLA4pS_qFnXjw,22624
1110
+ django_cfg-1.4.72.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
1111
+ django_cfg-1.4.72.dist-info/entry_points.txt,sha256=Ucmde4Z2wEzgb4AggxxZ0zaYDb9HpyE5blM3uJ0_VNg,56
1112
+ django_cfg-1.4.72.dist-info/licenses/LICENSE,sha256=xHuytiUkSZCRG3N11nk1X6q1_EGQtv6aL5O9cqNRhKE,1071
1113
+ django_cfg-1.4.72.dist-info/RECORD,,