Issue #127 new

Default POST request method fails,

Sebastian Pawluś
created an issue

Default POST request method always fails, with error

{{{

!python

Traceback (most recent call last):

File "/home/seba/.virtualenvs/django_remote/lib/python2.6/site-packages/django_piston-0.2.3rc1-py2.6.egg/piston/handler.py", line 100, in create attrs = self.flatten_dict(request.data)

File "/home/seba/.virtualenvs/django_remote/lib/python2.6/site-packages/django_piston-0.2.3rc1-py2.6.egg/piston/handler.py", line 56, in flatten_dict return dict([ (str(k), dct.get(k)) for k in dct.keys() ])

AttributeError: 'NoneType' object has no attribute 'keys'

}}}

Check attachment. I'm not a Django expert but this small change worked for me.

Comments (1)

  1. Log in to comment