Fix for AttributeError: 'WSGIRequest' object has no attribute 'raw_post_data'