英文: django - get serializer output into another serializer 问题 我想将一个序列化器 'RoomSerializer' 的输出放入 'Join...
如何列出djongo中与所有外键关联的所有值
英文: How to list all values associated with all foreign keys in djongo 问题 我使用 djongo 作为连接 mongoDB 数据库...
在DRF中,如何创建一个POST序列化器,在其中可以添加多个外键字段的值?
英文: IN DRF, how to create a POST serializer where I can add multiple values of a Foreign Key field 问...
Django REST框架无法正确序列化POST数据。
英文: Django rest framework post data not being serialized properly 问题 I have 2 models class MenuItem(...
One to many relationship query in Django ORM, Where I want to query on One table and want to get output with many table data as a list
英文: One to many relationship query in Django ORM, Where I want to query on One table and want to get...
Serializer不会将数据保存到数据库,但响应状态码为200。
英文: Serializer doesn't save data into DB, but response is 200 问题 I need to take data by using ke...
Django在序列化器上声明只读字段
英文: Django declaring a read-only field on serializer 问题 我理解你的需求。你想要在GET请求中向用户显示主键id,并且将其显示为orderId,同...
Django Rest Framework – 自定义错误消息 – 序列化器 vs. 模型
英文: Django Rest Framework - Custom error messages - Serializer vs. Model 问题 :) 你好! 我目前面临一个问题,我无法通过查阅...
FieldError( django.core.exceptions.FieldError: 无法将关键词’is_active’解析为字段
英文: raise FieldError( django.core.exceptions.FieldError: Cannot resolve keyword 'is_active' ...
如何为一对多(外键)关系创建序列化程序?
英文: How do I create a serializer for one to many (Foreign key) relationship? 问题 我的模型是: class Posts(m...