1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #28708 -- Added constants to detect the Python version.

This commit is contained in:
Tim Graham
2017-10-12 11:08:05 -04:00
parent abb636c1af
commit 941b0a5b33
4 changed files with 13 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ from django.urls import reverse
from django.utils.encoding import force_bytes
from django.utils.functional import SimpleLazyObject
from django.utils.safestring import mark_safe
from django.utils.version import PY36
from django.views.debug import (
CLEANSED_SUBSTITUTE, CallableSettingWrapper, ExceptionReporter,
cleanse_setting, technical_500_response,
@@ -31,8 +32,6 @@ from ..views import (
sensitive_method_view, sensitive_view,
)
PY36 = sys.version_info >= (3, 6)
class User:
def __str__(self):