django-tastypie: Cannot access bundle.request in dehydrate(self,bundle)

隐身守侯 提交于 2019-12-02 06:05:18
Stephen Diehl

You're probably running Tastypie 9.10 if you installed from pypi. The Bundle object in the pypi version does indeed not have a request object.

If you upgrade to the git version of django-tastypie master and use that instead the problem should be resolved.

pip uninstall django-tastypie 
pip install -e git+https://github.com/toastdriven/django-tastypie.git#egg=django-tastypie
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!