diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2016-10-18 20:02:16 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2016-10-18 20:02:16 +0200 |
commit | 43b98811f837077fd56149856648d3cabd9ee66c (patch) | |
tree | 512632bef9a436ac6082b863d253ee8737910f61 | |
parent | 22ccb6401bc40aae9f858d08826ee5104a1b6c51 (diff) | |
download | raven-43b98811f837077fd56149856648d3cabd9ee66c.tar.gz |
Revert "Merge pull request #882 from do3cc/rest_framework_support"
This reverts commit db7d970999e7212bc848349ab5bc1e372980ea9d, reversing
changes made to 7ca8746a8375d69f07de13103fcfbab91a868fc6.
This broke the world
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | raven/contrib/django/client.py | 10 |
2 files changed, 1 insertions, 10 deletions
@@ -19,7 +19,6 @@ Version 5.27.1 Version 5.27.0 -------------- -* Added support for extracting data from rest_framework in Django integration * Updated CA bundle. * Added transaction-based culprits for Celery, Django, and Flask. * Fixed an issue where ``ignore_exceptions`` wasn't respected. diff --git a/raven/contrib/django/client.py b/raven/contrib/django/client.py index 38c78df..d343c62 100644 --- a/raven/contrib/django/client.py +++ b/raven/contrib/django/client.py @@ -34,14 +34,6 @@ from raven._compat import string_types, binary_type __all__ = ('DjangoClient',) -VALID_HTTP_REQUESTS = (HttpRequest, ) - -try: - from rest_framework.request import Request - VALID_HTTP_REQUESTS += (Request, ) -except ImportError: - pass - class _FormatConverter(object): @@ -265,7 +257,7 @@ class DjangoClient(Client): if request is None: request = getattr(SentryLogMiddleware.thread, 'request', None) - is_http_request = isinstance(request, VALID_HTTP_REQUESTS) + is_http_request = isinstance(request, HttpRequest) if is_http_request: data.update(self.get_data_from_request(request)) |