Permalink
Browse files

Django 1.6 compatability fix

  • Loading branch information...
1 parent 80b7fde commit 7ebec9c6f5208e94add4dcbde59da8f72827ed4c George Griffin committed Feb 6, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 pyamf/remoting/gateway/django.py
@@ -99,6 +99,10 @@ def __call__(self, http_request):
request = remoting.decode(http_request.raw_post_data,
strict=self.strict, logger=self.logger,
timezone_offset=timezone_offset)
+ except AttributeError: # fix to make work with Django 1.6
+ request = remoting.decode(http_request.body,
+ strict=self.strict, logger=self.logger,
+ timezone_offset=timezone_offset)
except (pyamf.DecodeError, IOError):
if self.logger:
self.logger.exception('Error decoding AMF request')

0 comments on commit 7ebec9c

Please sign in to comment.