Ceasar/PennApps2012 — Issue #4:  "'Calendar' object has no attribute 'tasks'"
Author: jbr1992
Created: 2012-01-20 22:00:14+00:00
State: open

At http://localhost:8000/api/v1/calendar/1/?format=json:

{"error_message": "'Calendar' object has no attribute 'tasks'", "traceback": "Traceback (most recent call last):\n\n File \"/usr/local/lib/python2.7/dist-packages/tastypie/resources.py\", line 192, in wrapper\n response = callback(request, *args, **kwargs)\n\n File \"/usr/local/lib/python2.7/dist-packages/tastypie/resources.py\", line 406, in dispatch_detail\n return self.dispatch('detail', request, **kwargs)\n\n File \"/usr/local/lib/python2.7/dist-packages/tastypie/resources.py\", line 427, in dispatch\n response = method(request, **kwargs)\n\n File \"/usr/local/lib/python2.7/dist-packages/tastypie/resources.py\", line 1058, in get_detail\n bundle = self.full_dehydrate(bundle)\n\n File \"/usr/local/lib/python2.7/dist-packages/tastypie/resources.py\", line 654, in full_dehydrate\n bundle.data[field_name] = field_object.dehydrate(bundle)\n\n File \"/usr/local/lib/python2.7/dist-packages/tastypie/fields.py\", line 690, in dehydrate\n the_m2ms = getattr(bundle.obj, self.attribute)\n\nAttributeError: 'Calendar' object has no attribute 'tasks'\n"}