A refinement of the #32 and #33 patch that avoid the pitfalls that caused #38. This is all caused by the self.get_resource_uri(None) called on line 1262 of the resources.py file in tastypie