From b174868e10730015900123824da5b6c8760fbb39 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 08:15:24 +0000 Subject: [PATCH] ref(django): Remove dead Django < 1.7 guard in patch_templates --- sentry_sdk/integrations/django/templates.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/sentry_sdk/integrations/django/templates.py b/sentry_sdk/integrations/django/templates.py index 0f77f3213c..f45393782d 100644 --- a/sentry_sdk/integrations/django/templates.py +++ b/sentry_sdk/integrations/django/templates.py @@ -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 @@ -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