2019-05-27 Django-Rest-Framework serializer 使用 __all__ 返回数据不存在id
classSampleSerializer(serializers.HyperlinkedModelSerializer):#creator=serializers.ReadOnlyField(source='creator.username')#serializer变换中'__all__'没有id属性,手动添加此属性,以适应__all__达到偷懒的效果id=serializers.Seriali