django-cfg 1.2.1__py3-none-any.whl → 1.2.2__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_cfg/__init__.py +1 -1
- django_cfg/apps/accounts/views/otp.py +9 -0
- django_cfg/apps/tasks/views.py +13 -0
- {django_cfg-1.2.1.dist-info → django_cfg-1.2.2.dist-info}/METADATA +1 -1
- {django_cfg-1.2.1.dist-info → django_cfg-1.2.2.dist-info}/RECORD +8 -8
- {django_cfg-1.2.1.dist-info → django_cfg-1.2.2.dist-info}/WHEEL +0 -0
- {django_cfg-1.2.1.dist-info → django_cfg-1.2.2.dist-info}/entry_points.txt +0 -0
- {django_cfg-1.2.1.dist-info → django_cfg-1.2.2.dist-info}/licenses/LICENSE +0 -0
django_cfg/__init__.py
CHANGED
@@ -24,6 +24,15 @@ class OTPViewSet(viewsets.GenericViewSet):
|
|
24
24
|
"""OTP authentication ViewSet with nested router support."""
|
25
25
|
|
26
26
|
permission_classes = [permissions.AllowAny]
|
27
|
+
serializer_class = OTPRequestSerializer # Default serializer for the viewset
|
28
|
+
|
29
|
+
def get_serializer_class(self):
|
30
|
+
"""Return the appropriate serializer class based on the action."""
|
31
|
+
if self.action == 'request_otp':
|
32
|
+
return OTPRequestSerializer
|
33
|
+
elif self.action == 'verify_otp':
|
34
|
+
return OTPVerifySerializer
|
35
|
+
return super().get_serializer_class()
|
27
36
|
|
28
37
|
@extend_schema(
|
29
38
|
request=OTPRequestSerializer,
|
django_cfg/apps/tasks/views.py
CHANGED
@@ -36,6 +36,19 @@ class TaskManagementViewSet(viewsets.GenericViewSet):
|
|
36
36
|
|
37
37
|
authentication_classes = [SessionAuthentication, BasicAuthentication]
|
38
38
|
permission_classes = [IsAdminUser]
|
39
|
+
serializer_class = APIResponseSerializer # Default serializer for the viewset
|
40
|
+
|
41
|
+
def get_serializer_class(self):
|
42
|
+
"""Return the appropriate serializer class based on the action."""
|
43
|
+
if self.action == 'queue_status':
|
44
|
+
return QueueStatusSerializer
|
45
|
+
elif self.action == 'queue_manage':
|
46
|
+
return QueueActionSerializer
|
47
|
+
elif self.action == 'worker_manage':
|
48
|
+
return WorkerActionSerializer
|
49
|
+
elif self.action == 'task_statistics':
|
50
|
+
return TaskStatisticsSerializer
|
51
|
+
return super().get_serializer_class()
|
39
52
|
|
40
53
|
def get_tasks_service(self):
|
41
54
|
"""Get DjangoTasks service instance."""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: django-cfg
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.2
|
4
4
|
Summary: 🚀 Production-ready Django configuration framework with type-safe settings, smart automation, and modern developer experience
|
5
5
|
Project-URL: Homepage, https://github.com/markolofsen/django-cfg
|
6
6
|
Project-URL: Documentation, https://django-cfg.readthedocs.io
|
@@ -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=vaV1dOHjmG0bQG8EVAfNGOmb37ySIF-WZ33RKip8VHI,1630
|
3
3
|
django_cfg/apps.py,sha256=k84brkeXJI7EgKZLEpTkM9YFZofKI4PzhFOn1cl9Msc,1656
|
4
4
|
django_cfg/config.py,sha256=0cuRJVEnf03WzvEqhwzLvn9Zi1805C5KG1yk27ekABA,1190
|
5
5
|
django_cfg/urls.py,sha256=bpRFjMonQuk4UCUMxx4ueBX3YDNB7HXKFwEghQ3KR3o,793
|
@@ -47,7 +47,7 @@ django_cfg/apps/accounts/templates/emails/welcome_email.txt,sha256=jVIr4O9_jOOSU
|
|
47
47
|
django_cfg/apps/accounts/utils/auth_email_service.py,sha256=LMneikyFUH4oTnpg8p77sTh4_-nM7Yp8xvZri4zfhG4,3179
|
48
48
|
django_cfg/apps/accounts/utils/notifications.py,sha256=G_EOQe6JFqYvPVooFXJUcF5YvLx8Lnd_GMLfFwKTLiI,24914
|
49
49
|
django_cfg/apps/accounts/views/__init__.py,sha256=mQRa06_tfIkemXL2MMa05Yj2w1G3pbu2VjC7h4ZE1TI,239
|
50
|
-
django_cfg/apps/accounts/views/otp.py,sha256=
|
50
|
+
django_cfg/apps/accounts/views/otp.py,sha256=w5bKHe_fojKyK8PSUf8XqmB-DyKn8JcvgCo6Qh0J82U,6756
|
51
51
|
django_cfg/apps/accounts/views/profile.py,sha256=9fNXLK5d98a7jT3ZbkVyh3KzzUTm414P45ybZZeba0Y,5418
|
52
52
|
django_cfg/apps/accounts/views/webhook.py,sha256=hGe8f59HvKi6lKXymPxfT1_s4BaeZjrsPnlQI4Yx_tE,10756
|
53
53
|
django_cfg/apps/agents/README.md,sha256=CTK46bM6AgxoV8AkoH_t6HkGI6OUduL0oqrseQTCFeQ,3077
|
@@ -257,7 +257,7 @@ django_cfg/apps/tasks/admin.py,sha256=_P_JJgoPGS4cGjq6P-Pgj7E8ncsQ3nkeieB8D_EVDG
|
|
257
257
|
django_cfg/apps/tasks/apps.py,sha256=WXQvQjFVBuiO7s1ikd4Sf15YKRTvruVzMTo82uNXY08,383
|
258
258
|
django_cfg/apps/tasks/serializers.py,sha256=o323j6bmeNAVCu-FA3Jrve2tLuFOHMgkfXgZUdsTuS8,2751
|
259
259
|
django_cfg/apps/tasks/urls.py,sha256=NwEk6Vjq_ETEzzbx6R-9Qv3EbCxmX31xfzLICrlQ6cw,587
|
260
|
-
django_cfg/apps/tasks/views.py,sha256=
|
260
|
+
django_cfg/apps/tasks/views.py,sha256=ja6G2Ea3e9Km-m_-3D4-ka3VUIXxPpFp9NTlE2d9gOk,18639
|
261
261
|
django_cfg/apps/tasks/static/tasks/css/dashboard.css,sha256=mDtAwFWzNrWEJkbkQFewmzFSYRXgTfGIXVkfWkbcUW0,4765
|
262
262
|
django_cfg/apps/tasks/static/tasks/js/api.js,sha256=01OL5P0AO4fg9vCjVNx5s1mGgh6Ate69rucfA27CS3c,4048
|
263
263
|
django_cfg/apps/tasks/static/tasks/js/dashboard.js,sha256=iBizGudFpzkX29cJbYv7Zim2xHx94uoBtmPCJ7t6TzE,23496
|
@@ -434,8 +434,8 @@ django_cfg/utils/path_resolution.py,sha256=C9As6p4Q9l3VeoVkFDRPQWGrzAWf8O8UxLVka
|
|
434
434
|
django_cfg/utils/smart_defaults.py,sha256=b6A1z7VO1NJGq0oUQXN5P97c3k_Ssgw6qUi0mK-4TlM,19786
|
435
435
|
django_cfg/utils/toolkit.py,sha256=Td8_iXNaftonF_xdZP4Y3uO65nuA_4_zditn5Q_Pfcw,23310
|
436
436
|
django_cfg/utils/version_check.py,sha256=jI4v3YMdQriUEeb_TvRl511sDghy6I75iKRDUaNpucs,4800
|
437
|
-
django_cfg-1.2.
|
438
|
-
django_cfg-1.2.
|
439
|
-
django_cfg-1.2.
|
440
|
-
django_cfg-1.2.
|
441
|
-
django_cfg-1.2.
|
437
|
+
django_cfg-1.2.2.dist-info/METADATA,sha256=lqpgLyCzW9gfyYxukos7i7ohkUmutMF63ceutC9tqgE,45738
|
438
|
+
django_cfg-1.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
439
|
+
django_cfg-1.2.2.dist-info/entry_points.txt,sha256=Ucmde4Z2wEzgb4AggxxZ0zaYDb9HpyE5blM3uJ0_VNg,56
|
440
|
+
django_cfg-1.2.2.dist-info/licenses/LICENSE,sha256=xHuytiUkSZCRG3N11nk1X6q1_EGQtv6aL5O9cqNRhKE,1071
|
441
|
+
django_cfg-1.2.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|