moduel setgins fixed

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-20 22:49:31 +00:00
parent 5c9ef81aba
commit 646095da65
7 changed files with 220 additions and 54 deletions

View File

@@ -52,11 +52,9 @@ integration_image_gen_settings_viewset = IntegrationSettingsViewSet.as_view({
# Custom view for module enable settings to avoid URL routing conflict with ModuleSettingsViewSet
# This must be defined as a custom path BEFORE router.urls to ensure it matches first
# The update method handles pk=None correctly, so we can use as_view
# Read-only viewset - only GET is supported (modification via Django Admin only)
module_enable_viewset = ModuleEnableSettingsViewSet.as_view({
'get': 'list',
'put': 'update',
'patch': 'partial_update',
})
urlpatterns = [