Fork from https://bitbucket.org/jespern/django-piston/