Skip to content

Commit e240fdc

Browse files
farioasrobot-ci-heartex
authored andcommitted
chore: Fix image scan CVEs (DRF, black, lxml-html-clean, pip-vendored urllib3/msgpack/setuptools)
GitOrigin-RevId: dd3e48b4940d7951b4b4b1c81da4062016a13dda
1 parent 2f2a027 commit e240fdc

3 files changed

Lines changed: 34 additions & 32 deletions

File tree

‎label_studio/core/settings/base.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ def _get_secure_proxy_ssl_header():
305305
'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',),
306306
'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
307307
'PAGE_SIZE': 100,
308+
# DRF 3.18 switched many=True validation errors to a dict; keep the list format API clients rely on
309+
'LIST_SERIALIZER_ERRORS_AS_DICT': False,
308310
}
309311
SILENCED_SYSTEM_CHECKS += ['rest_framework.W001']
310312

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies = [
3434
"django-user-agents (==0.4.0)",
3535
"django-ranged-fileresponse (>=0.1.2)",
3636
"drf-dynamic-fields (==0.3.0)",
37-
"djangorestframework (==3.17.2)",
37+
"djangorestframework (==3.18.3)",
3838
"drf-flex-fields (==0.9.5)",
3939
"drf-spectacular (==0.28.0)",
4040
"drf-generators (==0.3.0)",

‎uv.lock‎

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)