Small change for Django 1.4 rename from raw_post_data to body
1 files changed, 3 insertions(+), 1 deletions(-) M djpubsubhubbub/views.py
M djpubsubhubbub/views.py +3 -1
@@ 66,7 66,9 @@ def callback(request, pk): return HttpResponse(challenge, content_type='text/plain') elif request.method == 'POST': subscription = get_object_or_404(Subscription, pk=pk) - parsed = feedparser.parse(request.raw_post_data) + parsed = feedparser.parse( + getattr(request, 'body', request.raw_post_data), + ) if parsed.feed.links: # single notification hub_url = subscription.hub self_url = subscription.topic