perf: update fields serialization and bump django and djangorestframework versions (#16209)

Co-authored-by: wangruidong <940853815@qq.com>
This commit is contained in:
fit2bot
2025-10-28 16:42:06 +08:00
committed by GitHub
parent b8639601a1
commit dd0cacb4bc
2 changed files with 3 additions and 3 deletions

View File

@@ -603,7 +603,7 @@ class JSONManyToManyField(models.JSONField):
return None
if isinstance(value, RelatedManager):
value = value.value
return json.dumps(value)
return value
def validate(self, value, model_instance):
super().validate(value, model_instance)

View File

@@ -68,14 +68,14 @@ dependencies = [
'ipip-ipdb==1.6.1',
'pywinrm==0.4.3',
'python-nmap==0.7.1',
'django==4.1.13',
'django==4.2.24',
'django-bootstrap3==23.4',
'django-filter==23.2',
'django-formtools==2.5.1',
'django-ranged-response==0.2.0',
'django-simple-captcha==0.5.18',
'django-timezone-field==5.1',
'djangorestframework==3.14.0',
'djangorestframework==3.16.1',
'djangorestframework-bulk==0.2.1',
'django-simple-history==3.6.0',
'django-private-storage==3.1',