Skip to content

Commit

Permalink
Removed stuff not belonging in this pr
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Jun 27, 2023
1 parent 544d4e3 commit 6b78d26
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sentry_sdk/integrations/django/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def patch_views():
from django.template.response import SimpleTemplateResponse
from sentry_sdk.integrations.django import DjangoIntegration

old_make_view_atomic = BaseHandler.make_view_atomic
old_render = SimpleTemplateResponse.render

def sentry_patched_render(self):
Expand All @@ -36,10 +37,6 @@ def sentry_patched_render(self):
):
return old_render(self)

SimpleTemplateResponse.render = sentry_patched_render

old_make_view_atomic = BaseHandler.make_view_atomic

@_functools.wraps(old_make_view_atomic)
def sentry_patched_make_view_atomic(self, *args, **kwargs):
# type: (Any, *Any, **Any) -> Any
Expand All @@ -66,6 +63,7 @@ def sentry_patched_make_view_atomic(self, *args, **kwargs):

return sentry_wrapped_callback

SimpleTemplateResponse.render = sentry_patched_render
BaseHandler.make_view_atomic = sentry_patched_make_view_atomic


Expand Down

0 comments on commit 6b78d26

Please sign in to comment.