Bundle object has no "request" attribute (Docs say it does...)

255 views
Skip to first unread message

benp

unread,
Sep 12, 2011, 10:32:50 AM9/12/11
to Tastypie
Hi,

I need to access the HttpRequest object in my Resource's dehydrate
method. I'd like to access it in other parts of the code as well :)

In the docs, it shows that bundle.request is a valid attribute (it's
in the resources.html page). When I try to add it to my code, I get an
error claiming that Bundle' object has no attribute 'request'.

Am I missing something?

Thanks,
Ben

Daniel Lindsley

unread,
Sep 13, 2011, 12:51:30 AM9/13/11
to django-...@googlegroups.com
Ben,


``bundle.request`` is only available in git master & was not part of the v0.9.9 release. Likely you installed from PyPI, hence why it's not there.


Daniel
Reply all
Reply to author
Forward
0 new messages