Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions sentry_sdk/integrations/django/templates.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import functools
from typing import TYPE_CHECKING

from django import VERSION as DJANGO_VERSION
from django.template import TemplateSyntaxError
from django.utils.safestring import mark_safe

Expand Down Expand Up @@ -85,8 +84,6 @@ def rendered_content(self: "SimpleTemplateResponse") -> str:

SimpleTemplateResponse.rendered_content = rendered_content

if DJANGO_VERSION < (1, 7):
return
import django.shortcuts # noqa: PLC0415

real_render = django.shortcuts.render
Expand Down
Loading