bugfix

https://bitbucket.org/jespern/django-piston/issue/173/