diff --git a/cosiap_api/cosiap_api/settings.py b/cosiap_api/cosiap_api/settings.py index 6776ca3e663e9a9a4ef57926e0e43dd13d25849e..578ef64091548d04a368b29e7b980226d4bbffee 100644 --- a/cosiap_api/cosiap_api/settings.py +++ b/cosiap_api/cosiap_api/settings.py @@ -196,7 +196,7 @@ SESSION_COOKIE_SECURE = True SESSION_COOKIE_HTTPONLY = True SIMPLE_JWT = { - 'ACCESS_TOKEN_LIFETIME': timedelta(minutes=3), + 'ACCESS_TOKEN_LIFETIME': timedelta(days=1), 'REFRESH_TOKEN_LIFETIME': timedelta(days=1), 'ROTATE_REFRESH_TOKENS': False, 'BLACKLIST_AFTER_ROTATION': False, diff --git a/cosiap_api/solicitudes/views.py b/cosiap_api/solicitudes/views.py index d7c164cadc269d4d5ff9bb75c69ae7f30051387b..f1162c6dce4d25719e5e5a26d6f691cd7f9779b4 100644 --- a/cosiap_api/solicitudes/views.py +++ b/cosiap_api/solicitudes/views.py @@ -45,7 +45,9 @@ class SolicitudAPIView(DynamicTableAPIView): 'gte': [(datetime.now() - timedelta(days=5*30)).strftime('%Y-%m-%d')] } } - non_editable_fields = ["id"] + non_editable_fields = ["id","minuta__id","convenio__id","modalidad__id","modalidad__dynamic_form__id","timestamp","solicitante__id", + "solicitante__is_superuser","solicitante__is_staff","solicitante__municipio__id","solicitante__municipio__estado__id", + "solicitante__datos_bancarios__id","registro_formulario__id"] dynamic_form_exist = True diff --git a/cosiap_frontend/src/components/modalidades/EditarModalidad.jsx b/cosiap_frontend/src/components/modalidades/EditarModalidad.jsx index e60c4742dc8a55e52793f849061ff8030854ef0c..016dc67ce1a542123da1fbf3dc7d15f673a7612a 100644 --- a/cosiap_frontend/src/components/modalidades/EditarModalidad.jsx +++ b/cosiap_frontend/src/components/modalidades/EditarModalidad.jsx @@ -358,10 +358,10 @@ const EditModalidad = () => { {/* Secciones del formulario */} - {Object.values(sections).map(section => ( + {Object.values(sections).map((section,sectionIndex) => (