django-cfg 1.4.70__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 +1 -1
- django_cfg/apps/accounts/admin/inlines.py +1 -1
- django_cfg/apps/accounts/admin/user_admin.py +10 -0
- django_cfg/modules/django_client/core/generator/go/templates/operations_client.go.j2 +1 -1
- django_cfg/modules/django_client/management/commands/generate_client.py +2 -1
- django_cfg/pyproject.toml +1 -1
- {django_cfg-1.4.70.dist-info → django_cfg-1.4.72.dist-info}/METADATA +1 -1
- {django_cfg-1.4.70.dist-info → django_cfg-1.4.72.dist-info}/RECORD +11 -11
- {django_cfg-1.4.70.dist-info → django_cfg-1.4.72.dist-info}/WHEEL +0 -0
- {django_cfg-1.4.70.dist-info → django_cfg-1.4.72.dist-info}/entry_points.txt +0 -0
- {django_cfg-1.4.70.dist-info → django_cfg-1.4.72.dist-info}/licenses/LICENSE +0 -0
django_cfg/__init__.py
CHANGED
|
@@ -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
|
|
|
@@ -430,7 +430,8 @@ class Command(BaseCommand):
|
|
|
430
430
|
tag_prefix=f"{group_name}_",
|
|
431
431
|
generate_package_files=service.config.generate_package_files,
|
|
432
432
|
package_config={
|
|
433
|
-
"
|
|
433
|
+
"name": group_name,
|
|
434
|
+
"module_name": group_name,
|
|
434
435
|
"version": "v1.0.0",
|
|
435
436
|
},
|
|
436
437
|
)
|
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.
|
|
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.
|
|
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=
|
|
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=
|
|
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=
|
|
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
|
|
@@ -719,7 +719,7 @@ django_cfg/modules/django_client/core/generator/go/templates/go.mod.j2,sha256=nh
|
|
|
719
719
|
django_cfg/modules/django_client/core/generator/go/templates/main_client.go.j2,sha256=8inEuBYVZNE06uVbOG2THzclUJpGV2D7dUAe_qk8vxk,1395
|
|
720
720
|
django_cfg/modules/django_client/core/generator/go/templates/middleware.go.j2,sha256=AQH2IbQZbhf58V7VHXwvrymORLcEUUaZQ6PMfvWbGBw,10022
|
|
721
721
|
django_cfg/modules/django_client/core/generator/go/templates/models.go.j2,sha256=9UThdTAGbILmzxIvu_Mn5cQsxs6dGPLtEdCK-DDrvUU,631
|
|
722
|
-
django_cfg/modules/django_client/core/generator/go/templates/operations_client.go.j2,sha256=
|
|
722
|
+
django_cfg/modules/django_client/core/generator/go/templates/operations_client.go.j2,sha256=Qxjr8kO1n-3FSlWfNWyBlt8ldrdh4Ym-FusC4cMQ9X0,3716
|
|
723
723
|
django_cfg/modules/django_client/core/generator/go/templates/validation.go.j2,sha256=3BzI7pOuuh-19wNwuRq7GtRda-Pmaw57Jug35bdtamA,5154
|
|
724
724
|
django_cfg/modules/django_client/core/generator/python/__init__.py,sha256=DOPkZBmNVX8qKZBulnE-49iMlBsMHszidzBhWG17c2E,448
|
|
725
725
|
django_cfg/modules/django_client/core/generator/python/async_client_gen.py,sha256=zFviFo0PLg3Zb-0TL5AS_Ghhvl-jS180Cl-AWIAWIa0,6030
|
|
@@ -821,7 +821,7 @@ django_cfg/modules/django_client/core/validation/rules/base.py,sha256=xVJli0eSEz
|
|
|
821
821
|
django_cfg/modules/django_client/core/validation/rules/type_hints.py,sha256=hwjTMADillsTPruDvXZQeZMj4LVV443zxY9o0Gqgg6k,10200
|
|
822
822
|
django_cfg/modules/django_client/management/__init__.py,sha256=mCTPP_bIOmqNnn0WAG2n4BuF6zwc9PTgdZr_dORfNDk,54
|
|
823
823
|
django_cfg/modules/django_client/management/commands/__init__.py,sha256=CJ55pHUNYQ5h-QHUe3axeTtxzlUJv7wbEuZmGN21iCM,36
|
|
824
|
-
django_cfg/modules/django_client/management/commands/generate_client.py,sha256=
|
|
824
|
+
django_cfg/modules/django_client/management/commands/generate_client.py,sha256=OaNiuiwA8BTDTaCTdGVsldwxithSvl-9WuLVRlGhAk8,18701
|
|
825
825
|
django_cfg/modules/django_client/management/commands/validate_openapi.py,sha256=IBKk7oRP3tMQzXjvZNIgQtMPk3k_mB2diNS7bkaSLz4,11011
|
|
826
826
|
django_cfg/modules/django_client/spectacular/__init__.py,sha256=M8fG-odu2ltkG36aMMr0KDkCKGX676TwdrJO8vky2cI,345
|
|
827
827
|
django_cfg/modules/django_client/spectacular/async_detection.py,sha256=S_pwGR7_2SIWHjZJyiu7SCfySF3Nr3P8eqjDyBSkkLs,5731
|
|
@@ -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=
|
|
1109
|
-
django_cfg-1.4.
|
|
1110
|
-
django_cfg-1.4.
|
|
1111
|
-
django_cfg-1.4.
|
|
1112
|
-
django_cfg-1.4.
|
|
1113
|
-
django_cfg-1.4.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|