(u"Creating a ModelSerializer without either the 'fields' attribute or the 'exclude' attribute has been deprecated since 3.3.0, and is now disallowed. Add an explicit fields = '__all__' to the BookSerializer serializer.",)

qq_2invpmbg Django 开发——API ... 最后由 上海小胖 于2017年03月22日回复

  • 1 回答
  • 4k 浏览
(u"Creating a ModelSerializer without either the 'fields' attribute or the 'exclude' attribute has been deprecated since 3.3.0, and is now disallowed. Add an explicit fields = '__all__' to the BookSerializer serializer.",)