dormitory.serializers module

class dormitory.serializers.AgreementSerializer(*args, **kwargs)[源代码]

基类:ModelSerializer

class Meta[源代码]

基类:object

fields = ['user', 'sign_time']
model

Agreement 的别名

read_only_fields = ['user', 'sign_time']
class dormitory.serializers.AgreementSerializerFixme(*args, **kwargs)[源代码]

基类:ModelSerializer

class Meta[源代码]

基类:object

fields = ['id']
model

Agreement 的别名

class dormitory.serializers.DormitoryAssignmentSerializer(*args, **kwargs)[源代码]

基类:ModelSerializer

class Meta[源代码]

基类:object

fields = '__all__'
model

DormitoryAssignment 的别名

class dormitory.serializers.DormitorySerializer(*args, **kwargs)[源代码]

基类:ModelSerializer

class Meta[源代码]

基类:object

fields = '__all__'
model

Dormitory 的别名