Skip to content

Instantly share code, notes, and snippets.

@carmi
Created May 19, 2013 00:12
Show Gist options
  • Save carmi/5606179 to your computer and use it in GitHub Desktop.
Save carmi/5606179 to your computer and use it in GitHub Desktop.
HIT: http://localhost:8000/api/geoperson/?format=json Respones:
{
"error_message": "dehydrate() got an unexpected keyword argument 'for_list'",
"traceback": "Traceback (most recent call last):\n\n File \"/home/evan/.virtualenvs/wespeople.com/local/lib/python2.7/site-packages/tastypie/resources.py\", line 217, in wrapper\n response = callback(request, *args, **kwargs)\n\n File \"/home/evan/.virtualenvs/wespeople.com/local/lib/python2.7/site-packages/tastypie/resources.py\", line 459, in dispatch_list\n return self.dispatch('list', request, **kwargs)\n\n File \"/home/evan/.virtualenvs/wespeople.com/local/lib/python2.7/site-packages/tastypie/resources.py\", line 491, in dispatch\n response = method(request, **kwargs)\n\n File \"/home/evan/.virtualenvs/wespeople.com/local/lib/python2.7/site-packages/tastypie/resources.py\", line 1310, in get_list\n bundles.append(self.full_dehydrate(bundle, for_list=True))\n\n File \"/home/evan/.virtualenvs/wespeople.com/local/lib/python2.7/site-packages/tastypie/resources.py\", line 865, in full_dehydrate\n bundle.data[field_name] = field_object.dehydrate(bundle, for_list=for_list)\n\nTypeError: dehydrate() got an unexpected keyword argument 'for_list'\n"
}
@nehagaming12
Copy link

nehagaming12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment